Fixing release issue (proguard was stripping @Subscribe methods).

master
Tomasz Półgrabia 2016-10-09 14:25:34 +02:00
parent 8cf13d5fb9
commit a97ea439f6
1 changed files with 15 additions and 1 deletions

View File

@ -27,3 +27,17 @@
-dontwarn okio.** -dontwarn okio.**
-dontwarn com.crashlytics.** -dontwarn com.crashlytics.**
-dontwarn okhttp3.logging.** -dontwarn okhttp3.logging.**
## New rules for EventBus 3.0.x ##
# http://greenrobot.org/eventbus/documentation/proguard/
-keepattributes *Annotation*
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
# Only required if you use AsyncExecutor
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
<init>(java.lang.Throwable);
}