Forked from jkwiecien/retrofit2_rxjava_proguard_config
Created
March 1, 2016 10:18
-
-
Save markzhai/57fde42b82eb26051585 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