Closed Duna closed 4 years ago
Thanks for reporting. This is a duplicate of #586.
Still anyone facing the issue? How did you solved it?
gradle.properties: android.enableR8 = true
gradle file:
debug {
minifyEnabled true
shrinkResources false
signingConfig signingConfigs.config
}
Retrofit had the same issue: https://github.com/square/retrofit/issues/3005
Here it is the sample project that proves the EventBus is crashing the app. By default R8 is enabled in Android Studio 3.6.1. ProGuard is not used anymore since is deprecated.
https://square.github.io/okhttp/r8_proguard/ look what others do
All @Subscribe methods gets deleted by using R8, no matter of proguard rules. All subscribe methods are public.
Proguard rules:
This bug is critical since EventBus is no longer working with newest Android technologies