Closed GoogleCodeExporter closed 8 years ago
Sorry that I didn't came up with this in the first post, here is my
proguard.cfg:
-injars 'C:\Workspaces\motodevWs\gp2012\bin\classes'
-injars 'C:\Workspaces\motodevWs\gp2012\libs'
-outjars 'C:\Workspaces\motodevWs\gp2012\bin\classes-processed.jar'
-libraryjars 'C:\android\android-sdk\platforms\android-7\android.jar'
-libraryjars
'C:\android\android-sdk\add-ons\addon_google_apis_google_inc_7\libs\maps.jar'
-optimizations !code/simplification/arithmetic
-allowaccessmodification
-repackageclasses ''
-keepattributes *Annotation*,SourceFile,LineNumberTable,*Annotation*
-renamesourcefileattribute SourceFile
-dontpreverify
-dontwarn java.awt.**,javax.security.**,java.beans.**,com.sun.**
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context,android.util.AttributeSet);
public <init>(android.content.Context,android.util.AttributeSet,int);
public void set*(...);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context,android.util.AttributeSet);
}
-keepclasseswithmembers class * {
public <init>(android.content.Context,android.util.AttributeSet,int);
}
-keepclassmembers class * extends android.os.Parcelable {
static android.os.Parcelable$Creator CREATOR;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
# keep this class so that logging will show 'ACRA' and not a obfuscated name
like 'a'.
# Note: if you are removing log messages elsewhere in this file then this isn't
necessary
-keep class org.acra.ACRA {
<fields>;
<methods>;
}
# keep this around for some enums that ACRA needs
-keep class org.acra.ReportingInteractionMode {
<fields>;
<methods>;
}
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter {
public void addCustomData(java.lang.String,java.lang.String);
}
# keep this otherwise it is removed by ProGuard
-keep public class org.acra.ErrorReporter {
public org.acra.ErrorReporter$ReportsSenderWorker handleSilentException(java.lang.Throwable);
}
Original comment by geizpar...@gmail.com
on 6 Feb 2012 at 8:47
After some research I found the solution to my problem and it was indeed
connected to my version of "proguard.cfg".
somehow I managed to "forget" the -keppclassmembers entry for enums which is:
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
I added this entry to the ProGuard config file (proguard.cfg) and everything
runs perfectly!
please close this issue
Original comment by geizpar...@gmail.com
on 6 Feb 2012 at 12:03
Original comment by kevin.gaudin
on 5 Mar 2012 at 10:02
Original issue reported on code.google.com by
geizpar...@gmail.com
on 6 Feb 2012 at 8:42