EventBus - open-source library for Android using the publisher/subscriber pattern for loose coupling.
EventBus enables central communication to decoupled classes with just a few lines of code – simplifying the code, removing dependencies, and speeding up app development.
ProGuard rules for EventBus
Add the following lines to your ProGuard configuration proguard.cfg file in project.
-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); }
For more information about EventBus please see the website.