Skip to content

Commit

Permalink
Fix proguard-guava.pro for issue krschultz#89
Browse files Browse the repository at this point in the history
 Guava configuration ProGuard removes annotated EventBus subscriber methods and so events are fired but not consumed.
  • Loading branch information
PN1019 authored Dec 7, 2017
1 parent c636c6c commit a17abca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/proguard-guava.pro
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
public static com.google.common.base.Joiner on(java.lang.String);
public ** join(...);
}
-keepclassmembers class ** {
@com.google.common.eventbus.Subscribe public *;
}

-keep class com.google.common.collect.MapMakerInternalMap$ReferenceEntry
-keep class com.google.common.cache.LocalCache$ReferenceEntry


# http://stackoverflow.com/questions/9120338/proguard-configuration-for-guava-with-obfuscation-and-optimization
-dontwarn javax.annotation.**
-dontwarn javax.inject.**
Expand Down

0 comments on commit a17abca

Please sign in to comment.