Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

Guava EventBus config missing keepclassmembers for annotated methods #89

Open
Ainiuso opened this issue Dec 14, 2015 · 1 comment
Open

Comments

@Ainiuso
Copy link

Ainiuso commented Dec 14, 2015

I discovered that with current Guava configuration ProGuard removes annotated EventBus subscriber methods and so events are fired but not consumed.
This rule fixes this issue:

-keepclassmembers class ** {
    @com.google.common.eventbus.Subscribe public *;
}
@Arlem
Copy link

Arlem commented Jun 24, 2016

I can confirm that this rule works and has fixed my problem with EventBus.

PN1019 added a commit to PN1019/android-proguard-snippets that referenced this issue Dec 7, 2017
 Guava configuration ProGuard removes annotated EventBus subscriber methods and so events are fired but not consumed.
Townk added a commit to Townk/android-proguard-snippets that referenced this issue Mar 21, 2018
Fix proguard-guava.pro for issue krschultz#89
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants