Problem with ProGuard and RoboGuice with @Inject annotations
Date : March 29 2020, 07:55 AM
may help you . Doesn't look like you are keeping annotations. They will be totally stripped out since they have no effect on the execution of code, And that's real bad since the only way to retrieve then is with reflection. Try adding -keepattributes *Annotation*
|
Using proguard with GSON and RoboGuice fails when using a EnumTypeAdapter
Date : March 29 2020, 07:55 AM
this one helps. I went through and examined the resulting APK decompiled. I believe the problem is related to some enum type losing its members during obfuscation. Be sure to keep enum class members: -keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep public class com.company.ordering.datacontract.** {
public protected *;
}
-keep public class com.company.ordering.service.request.** {
public protected *;
}
-keep public class com.company.ordering.service.response.** {
public protected *;
}
|
Proguard RoboGuice Obfuscate Error on ViewListener
Date : March 29 2020, 07:55 AM
wish help you to fix your issue I'm not a proguard expert, but it looks like it is still obfuscating the roboguice library even though you have it included in the -libraryjars section. You could try to exclude it via its package. -keep class roboguice.** { *; }
|
Proguard issues with Roboguice 3
Date : March 29 2020, 07:55 AM
seems to work fine I'm trying to import Roboguice but when I do I get a bunch of Proguard errors. , To make the final warnings go away so it will complete the compile: -dontwarn roboguice.**
-dontwarn org.roboguice.**
|
Proguard with Roboguice
Date : March 29 2020, 07:55 AM
this one helps. I turned on proguard in by application I have a warning in application onCreate , add to your proguard file -keep class com.google.inject.internal.util.$Finalizer { *; }
|