proguard-rules.pro 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Add project specific ProGuard rules here.
  2. # You can control the set of applied configuration files using the
  3. # proguardFiles setting in build.gradle.
  4. #
  5. # For more details, see
  6. # http://developer.android.com/guide/developing/tools/proguard.html
  7. # If your project uses WebView with JS, uncomment the following
  8. # and specify the fully qualified class name to the JavaScript interface
  9. # class:
  10. #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
  11. # public *;
  12. #}
  13. # Uncomment this to preserve the line number information for
  14. # debugging stack traces.
  15. #-keepattributes SourceFile,LineNumberTable
  16. # If you keep the line number information, uncomment this to
  17. # hide the original source file name.
  18. #-renamesourcefileattribute SourceFile
  19. ############eventbus start############
  20. -keepattributes *Annotation*
  21. -keepclassmembers class * {
  22. @org.greenrobot.eventbus.Subscribe <methods>;
  23. }
  24. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  25. # And if you use AsyncExecutor:
  26. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  27. <init>(java.lang.Throwable);
  28. }
  29. ############eventbus end############
  30. ############Glide start############
  31. -keep public class * implements com.bumptech.glide.module.GlideModule
  32. -keep class * extends com.bumptech.glide.module.AppGlideModule {
  33. <init>(...);
  34. }
  35. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  36. **[] $VALUES;
  37. public *;
  38. }
  39. #-keep class com.bumptech.glide.load.data.ParcelFileDescriptorRewinder$InternalRewinder {
  40. # *** rewind();
  41. #}
  42. #
  43. ## for DexGuard only
  44. #-keepresourcexmlelements manifest/application/meta-data@value=GlideModule
  45. ############Glide end############