選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

proguard-app.pro 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # 忽略警告
  2. #-ignorewarning
  3. # 混淆保护自己项目的部分代码以及引用的第三方jar包
  4. #-libraryjars libs/umeng-analytics-v5.2.4.jar
  5. # 标题栏框架
  6. #-keep class com.hjq.bar.** {*;}
  7. # 吐司框架
  8. #-keep class com.hjq.toast.** {*;}
  9. # 权限请求框架
  10. -keep class com.hjq.permissions.** {*;}
  11. # 不混淆 WebView 的 JS 接口
  12. -keepattributes *JavascriptInterface*
  13. # 不混淆 WebView 的类的所有的内部类
  14. -keepclassmembers class com.veidy.activity.WebViewActivity$*{
  15. *;
  16. }
  17. # 不混淆 WebChromeClient 中的 openFileChooser 方法
  18. -keepclassmembers class * extends android.webkit.WebChromeClient{
  19. public void openFileChooser(...);
  20. }
  21. # EventBus3
  22. -keepattributes *Annotation*
  23. -keepclassmembers class ** {
  24. @org.greenrobot.eventbus.Subscribe <methods>;
  25. }
  26. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  27. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  28. <init>(java.lang.Throwable);
  29. }
  30. # Glide
  31. -keep public class * implements com.bumptech.glide.module.GlideModule
  32. -keep public class * extends com.bumptech.glide.module.AppGlideModule
  33. -keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  34. **[] $VALUES;
  35. public *;
  36. }
  37. # for DexGuard only
  38. # -keepresourcexmlelements manifest/application/meta-data@value=GlideModule
  39. # Bugly
  40. -dontwarn com.tencent.bugly.**
  41. -keep public class com.tencent.bugly.**{*;}
  42. # AOP
  43. -adaptclassstrings
  44. -keepattributes InnerClasses, EnclosingMethod, Signature, *Annotation*
  45. -keepnames @org.aspectj.lang.annotation.Aspect class * {
  46. ajc* <methods>;
  47. }
  48. # OkHttp3
  49. -keepattributes Signature
  50. -keepattributes *Annotation*
  51. -keep class okhttp3.** { *; }
  52. -keep interface okhttp3.** { *; }
  53. -dontwarn okhttp3.**
  54. -dontwarn okio.**
  55. # 保护 IRequestApi 类字段名不被混淆
  56. -keepclassmembernames class * implements com.hjq.http.config.IRequestApi {
  57. <fields>;
  58. }
  59. # 保护 Bean 类不被混淆(请注意修改包名路径)
  60. -keepclassmembernames class com.hjq.demo.http.response.** {
  61. <fields>;
  62. }
  63. # 保护模型类的字段不被混淆(请注意修改包名路径)
  64. -keepclassmembernames class com.hjq.demo.http.model.HttpData {
  65. <fields>;
  66. }