Last active
November 28, 2016 13:34
-
-
Save figengungor/837c3347467f7bb107981e746e85317b to your computer and use it in GitHub Desktop.
Butterknife, Retrofit 2.x, RxJava, RetroLamba, EventBus proguard rules
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
# Butterknife | |
-keep class butterknife.** { *; } | |
-dontwarn butterknife.internal.** | |
-keep class **$$ViewBinder { *; } | |
-keepclasseswithmembernames class * { | |
@butterknife.* <fields>; | |
} | |
-keepclasseswithmembernames class * { | |
@butterknife.* <methods>; | |
} | |
# Retrofit 2.X | |
## https://square.github.io/retrofit/ ## | |
-dontwarn retrofit2.** | |
-keep class retrofit2.** { *; } | |
-keepattributes Signature | |
-keepattributes Exceptions | |
-keepclasseswithmembers class * { | |
@retrofit2.http.* <methods>; | |
} | |
# Okio | |
-dontwarn okio.** | |
# RxJava | |
-dontwarn sun.misc.Unsafe | |
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* { | |
long producerIndex; | |
long consumerIndex; | |
} | |
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef { | |
rx.internal.util.atomic.LinkedQueueNode producerNode; | |
} | |
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef { | |
rx.internal.util.atomic.LinkedQueueNode consumerNode; | |
} | |
# RetroLambda | |
# as per official recommendation: https://github.com/evant/gradle-retrolambda#proguard | |
-dontwarn java.lang.invoke.* | |
#EventBus | |
-keepattributes *Annotation* | |
-keepclassmembers class ** { | |
@org.greenrobot.eventbus.Subscribe <methods>; | |
} | |
-keep enum org.greenrobot.eventbus.ThreadMode { *; } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment