EdwardvanRaak / MaterialBarcodeScanner

Easy to use barcode reader for your Android Project (Uses Google Mobile Vision API)
Apache License 2.0
272 stars 113 forks source link

Add information about Proguard rules #35

Open Wojtek1234 opened 7 years ago

Wojtek1234 commented 7 years ago

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 commented 7 years ago

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