Last active
September 15, 2020 08:43
-
-
Save jkwiecien/05dd23268bd08ecdf78d to your computer and use it in GitHub Desktop.
Retrofit2 + RxJava proguard config.
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 + RxJava--------######### | |
-dontwarn retrofit.** | |
-keep class retrofit.** { *; } | |
-dontwarn sun.misc.Unsafe | |
-dontwarn com.octo.android.robospice.retrofit.RetrofitJackson** | |
-dontwarn retrofit.appengine.UrlFetchClient | |
-keepattributes Signature | |
-keepattributes Exceptions | |
-keepclasseswithmembers class * { | |
@retrofit.http.* <methods>; | |
} | |
-keep class com.google.gson.** { *; } | |
-keep class com.google.inject.** { *; } | |
-keep class org.apache.http.** { *; } | |
-keep class org.apache.james.mime4j.** { *; } | |
-keep class javax.inject.** { *; } | |
-keep class retrofit.** { *; } | |
-dontwarn org.apache.http.** | |
-dontwarn android.net.http.AndroidHttpClient | |
-dontwarn retrofit.** | |
-dontwarn sun.misc.** | |
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { | |
long producerIndex; | |
long consumerIndex; | |
} | |
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { | |
long producerNode; | |
long consumerNode; | |
} | |
# ALSO REMEMBER KEEPING YOUR MODEL CLASSES | |
-keep class com.your.package.model.** { *; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment