Showing posts with label proguard. Show all posts
Showing posts with label proguard. Show all posts

Wednesday, July 18, 2012

ProGuard: Read Obfuscated Stack Traces

You'll need to run retrace.jar.
java -jar retrace.jar proguard.map stacktrace.txt
You'll also need proguard.jar in the same folder.
Link: http://proguard.sourceforge.net/index.html#manual/retrace/examples.html

Friday, June 1, 2012

Preserving Generics With Proguard


Proguard strips out Generics, even for classes that do not have names obfuscated. This might interfere with frameworks that makes uses reflection relating to Generics e.g. Gson.
To preserve Generics, add this to the proguard config file:
-keepattributes Signature

Along with preserving of Annotations

-keepattributes Signature,*Annotation*

Preserving Annotations With Proguard

Proguard strips out annotations, even for classes that do not have names obfuscated. This might interfere with frameworks that makes use of annotations e.g. Gson.

To preserve annotations, add this to the proguard config file:

-keepattributes *Annotation*