From a97ea439f6f9c8c6bfab67a305d377aaf519d4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Sun, 9 Oct 2016 14:25:34 +0200 Subject: [PATCH] Fixing release issue (proguard was stripping @Subscribe methods). --- app/proguard-rules.pro | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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