Last active
May 29, 2017 12:43
-
-
Save marcoRS/f7d588dc244207e4aa29 to your computer and use it in GitHub Desktop.
Retrofit, OkHttp, Gson, Dagger Proguard Configuration
This file contains hidden or 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
Can you please update it according to latest versions like okhttp 3 and all. 👍