You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proguard-app.pro 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # 忽略警告
  2. #-ignorewarning
  3. # 混淆保护自己项目的部分代码以及引用的第三方jar包
  4. #-libraryjars libs/umeng-analytics-v5.2.4.jar
  5. # 不混淆 WebView 的 JS 接口
  6. -keepattributes *JavascriptInterface*
  7. # 不混淆 WebView 的类的所有的内部类
  8. -keepclassmembers class com.hjq.demo.ui.activity.BrowserActivity$*{
  9. *;
  10. }
  11. # 不混淆 WebChromeClient 中的 openFileChooser 方法
  12. -keepclassmembers class * extends android.webkit.WebChromeClient{
  13. public void openFileChooser(...);
  14. }
  15. # EventBus3
  16. -keepattributes *Annotation*
  17. -keepclassmembers class ** {
  18. @org.greenrobot.eventbus.Subscribe <methods>;
  19. }
  20. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  21. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  22. <init>(java.lang.Throwable);
  23. }
  24. # Glide
  25. -keep public class * implements com.bumptech.glide.module.GlideModule
  26. -keep public class * extends com.bumptech.glide.module.AppGlideModule
  27. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  28. **[] $VALUES;
  29. public *;
  30. }
  31. # for DexGuard only
  32. # -keepresourcexmlelements manifest/application/meta-data@value=GlideModule
  33. # Bugly
  34. -dontwarn com.tencent.bugly.**
  35. -keep public class com.tencent.bugly.**{*;}
  36. # AOP
  37. -adaptclassstrings
  38. -keepattributes InnerClasses, EnclosingMethod, Signature, *Annotation*
  39. -keepnames @org.aspectj.lang.annotation.Aspect class * {
  40. public <methods>;
  41. }
  42. # OkHttp3
  43. -keepattributes Signature
  44. -keepattributes *Annotation*
  45. -keep class okhttp3.** { *; }
  46. -keep interface okhttp3.** { *; }
  47. -dontwarn okhttp3.**
  48. -dontwarn okio.**
  49. -dontwarn org.conscrypt.**
  50. # 不混淆这个包下的字段名
  51. -keepclassmembernames class com.hjq.demo.http.** {
  52. <fields>;
  53. }