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

Add information about Proguard rules #35

Open
Wojtek1234 opened this issue Mar 15, 2017 · 1 comment
Open

Add information about Proguard rules #35

Wojtek1234 opened this issue Mar 15, 2017 · 1 comment

Comments

@Wojtek1234
Copy link

Wojtek1234 commented Mar 15, 2017

Hey, you should provide proguard rules in Readme.md, EventBus does not do that on their main page, so there is a confusion after obfuscation wtf is going on, why nothing works

here there are
`-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);
}`

@AllanWang
Copy link

I agree. And keep in mind you can also add proguard through your own library with consumerProguardFiles 'progress-proguard.txt' under defaultConfig

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