Closed Duna closed 4 years ago
Here it is the sample project that proves the EventBus is crashing the app when using newest tool R8. By default R8 is enabled in Android Studio 3.6.1. ProGuard is not used anymore since is deprecated.
Sample Project
How do we solve the issue to keep @Subscribe annotation methods using R8? gradle file:
buildTypes { release { minifyEnabled true shrinkResources true }
gradle.properties file:
org.gradle.parallel=true android.useAndroidX=true android.enableJetifier=true runProguard=false
https://stackoverflow.com/questions/60976867/migrate-eventbus-library-from-proguard-to-r8-will-crash-the-subscriber
I just forget to include the path: proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Here it is the sample project that proves the EventBus is crashing the app when using newest tool R8. By default R8 is enabled in Android Studio 3.6.1. ProGuard is not used anymore since is deprecated.
Sample Project
How do we solve the issue to keep @Subscribe annotation methods using R8? gradle file:
gradle.properties file: