2016-11-16 19:46:46 +00:00
|
|
|
# To enable ProGuard in your project, edit project.properties
|
|
|
|
|
# to define the proguard.config property as described in that file.
|
|
|
|
|
#
|
|
|
|
|
# Add project specific ProGuard rules here.
|
|
|
|
|
# By default, the flags in this file are appended to flags specified
|
|
|
|
|
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
|
|
|
|
# You can edit the include path and order by changing the ProGuard
|
|
|
|
|
# include property in project.properties.
|
|
|
|
|
#
|
|
|
|
|
# For more details, see
|
|
|
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
|
|
|
|
|
|
# Add any project specific keep options here:
|
|
|
|
|
|
|
|
|
|
# If your project uses WebView with JS, uncomment the following
|
|
|
|
|
# and specify the fully qualified class name to the JavaScript interface
|
|
|
|
|
# class:
|
|
|
|
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
|
|
|
|
# public *;
|
|
|
|
|
#}
|
|
|
|
|
-keepattributes Signature
|
|
|
|
|
-keepattributes *Annotation*
|
|
|
|
|
-keepattributes Exceptions
|
|
|
|
|
-keep class sun.misc.Unsafe { *; }
|
|
|
|
|
|
|
|
|
|
#retrolambda
|
|
|
|
|
-dontwarn java.lang.invoke.*
|
|
|
|
|
-dontwarn sun.misc.**
|
|
|
|
|
|
|
|
|
|
#rxJava
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
|
|
|
|
|
long producerIndex;
|
|
|
|
|
long consumerIndex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
|
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode producerNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
|
|
|
|
|
rx.internal.util.atomic.LinkedQueueNode consumerNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#OkHttp
|
|
|
|
|
-keep class okhttp3.** { *; }
|
|
|
|
|
-keep,includedescriptorclasses class okio.Source
|
|
|
|
|
-keep,includedescriptorclasses class okio.okio.Buffer
|
|
|
|
|
-keep interface okhttp3.** { *; }
|
|
|
|
|
-dontwarn okhttp3.**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#retrofit
|
|
|
|
|
-dontwarn retrofit2.**
|
|
|
|
|
-keep class retrofit2.** { *; }
|
|
|
|
|
|
|
|
|
|
-keepclasseswithmembers class * {
|
|
|
|
|
@retrofit2.http.* <methods>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#dbFlow
|
|
|
|
|
-keep class * extends com.raizlabs.android.dbflow.config.DatabaseHolder { *; }
|
|
|
|
|
-keep class * extends com.raizlabs.android.dbflow.config.BaseDatabaseDefinition { *; }
|
|
|
|
|
-keep class com.raizlabs.android.dbflow.** {*;}
|
|
|
|
|
|
|
|
|
|
#gson
|
|
|
|
|
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
|
|
|
|
-keep class * implements com.google.gson.TypeAdapterFactory
|
|
|
|
|
-keep class * implements com.google.gson.JsonSerializer
|
|
|
|
|
-keep class * implements com.google.gson.JsonDeserializer
|
|
|
|
|
|
|
|
|
|
#keep models
|
|
|
|
|
-keep class com.magicmicky.habitrpgwrapper.lib.models.** { *; }
|
|
|
|
|
|
|
|
|
|
#eventbus
|
|
|
|
|
-keepclassmembers class ** {
|
|
|
|
|
@org.greenrobot.eventbus.Subscribe <methods>;
|
|
|
|
|
}
|
|
|
|
|
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
|
|
|
|
|
|
|
|
|
|
# Only required if you use AsyncExecutor
|
|
|
|
|
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
|
|
|
|
|
<init>(java.lang.Throwable);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#crashlytic
|
|
|
|
|
-keepattributes SourceFile,LineNumberTable
|
|
|
|
|
-keep public class * extends java.lang.Exception
|
|
|
|
|
-keep class com.crashlytics.** { *; }
|
|
|
|
|
-dontwarn com.crashlytics.**
|
|
|
|
|
|
2016-12-07 18:05:18 +00:00
|
|
|
#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 <methods>;
|
|
|
|
|
}
|
|
|
|
|
# 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 <methods>;
|
|
|
|
|
}
|
|
|
|
|
#end fresko
|
|
|
|
|
|
|
|
|
|
#amplitude
|
|
|
|
|
-keep class com.google.android.gms.ads.** { *; }
|
|
|
|
|
#end amplitude
|
|
|
|
|
|
2016-11-16 19:46:46 +00:00
|
|
|
#add warnings here, warnings in proguard is normal
|
|
|
|
|
-dontwarn javax.annotation.**
|
|
|
|
|
-dontwarn com.squareup.picasso.**
|
|
|
|
|
-dontwarn okio.**
|
|
|
|
|
-dontwarn rx.**
|
2016-12-07 18:05:18 +00:00
|
|
|
-dontwarn com.android.volley.toolbox.**
|
2016-11-16 19:46:46 +00:00
|
|
|
#-ignorewarnings
|
|
|
|
|
|