diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index af51210..108d46d 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -26,4 +26,18 @@ -dontwarn retrofit2.** -dontwarn okio.** -dontwarn com.crashlytics.** --dontwarn okhttp3.logging.** \ No newline at end of file +-dontwarn okhttp3.logging.** + +## New rules for EventBus 3.0.x ## +# http://greenrobot.org/eventbus/documentation/proguard/ + +-keepattributes *Annotation* +-keepclassmembers class ** { + @org.greenrobot.eventbus.Subscribe ; +} +-keep enum org.greenrobot.eventbus.ThreadMode { *; } + +# Only required if you use AsyncExecutor +-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { + (java.lang.Throwable); +} \ No newline at end of file