diff --git a/Habitica/proguard-rules.pro b/Habitica/proguard-rules.pro index 69d06e55e..acbab7595 100644 --- a/Habitica/proguard-rules.pro +++ b/Habitica/proguard-rules.pro @@ -88,10 +88,46 @@ -keep class com.crashlytics.** { *; } -dontwarn com.crashlytics.** +#fresko +# Keep our interfaces so they can be used by other ProGuard rules. +# See http://sourceforge.net/p/proguard/bugs/466/ +-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip + +# Do not strip any method/class that is annotated with @DoNotStrip +-keep @com.facebook.common.internal.DoNotStrip class * +-keepclassmembers class * { + @com.facebook.common.internal.DoNotStrip *; +} + +# Keep native methods +-keepclassmembers class * { + native ; +} +# Keep our interfaces so they can be used by other ProGuard rules. +# See http://sourceforge.net/p/proguard/bugs/466/ +-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip + +# Do not strip any method/class that is annotated with @DoNotStrip +-keep @com.facebook.common.internal.DoNotStrip class * +-keepclassmembers class * { + @com.facebook.common.internal.DoNotStrip *; +} + +# Keep native methods +-keepclassmembers class * { + native ; +} +#end fresko + +#amplitude +-keep class com.google.android.gms.ads.** { *; } +#end amplitude + #add warnings here, warnings in proguard is normal -dontwarn javax.annotation.** -dontwarn com.squareup.picasso.** -dontwarn okio.** -dontwarn rx.** +-dontwarn com.android.volley.toolbox.** #-ignorewarnings