-
Notifications
You must be signed in to change notification settings - Fork 14
ProGuard
David Kunzler edited this page May 4, 2020
·
2 revisions
If you use ProGuard for obfuscation there is some configuration necessary to make sure esperandro still works.
# Esperandro
-keepattributes *Annotation*, EnclosingMethod, Signature, InnerClasses
-keepnames class de.devland.** { *; }
# Prevent any @SharedPreferences annotated class from being modified
-keep @de.devland.esperandro.annotations.SharedPreferences class *
# Ensure the generated class is not optimized away, since it is only referenced through reflection
-keep public class **.*$$Impl { *; }
-keep public class **.*$$Impl$* { *; }
# jackson
-dontwarn com.fasterxml.jackson.databind.**
-keepnames class com.fasterxml.jackson.** { *; }
Thanks to @naixx and @cstaszak-logicboostlabs for their configurations.