Created
February 3, 2015 18:59
-
-
Save mbarrben/e80e4dd3b02663bdc7a3 to your computer and use it in GitHub Desktop.
Proguard rules for Retrofit, OkHttp, Gson, Dagger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Retrofit, OkHttp, Gson | |
-keepattributes *Annotation* | |
-keepattributes Signature | |
-keep class com.squareup.okhttp.** { *; } | |
-keep interface com.squareup.okhttp.** { *; } | |
-dontwarn com.squareup.okhttp.** | |
-dontwarn rx.** | |
-dontwarn retrofit.** | |
-keep class retrofit.** { *; } | |
-keepclasseswithmembers class * { | |
@retrofit.http.* <methods>; | |
} | |
-keep class sun.misc.Unsafe { *; } | |
-dontwarn java.nio.file.* | |
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement | |
# Dagger | |
-keep class * extends dagger.internal.Binding | |
-keep class * extends dagger.internal.ModuleAdapter | |
-keep class * extends dagger.internal.StaticInjection | |
-keep class * extends dagger.internal.BindingsGroup | |
-dontwarn dagger.internal.** |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment