Forked from jkwiecien/retrofit2_rxjava_proguard_config
Created
November 1, 2016 04:04
-
-
Save TrungVuHD/9b056b3fc466f930e7445dd635d22034 to your computer and use it in GitHub Desktop.
Retrofit2 + RxJava proguard config.
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 + 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