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.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # 忽略警告
  2. #-ignorewarning
  3. # 混淆保护自己项目的部分代码以及引用的第三方jar包
  4. #-libraryjars libs/umeng-analytics-v5.2.4.jar
  5. -keep class com.github.chrisbanes.photoview.** {*;}
  6. # 标题栏框架
  7. -keep class com.hjq.bar.** {*;}
  8. # 吐司框架
  9. -keep class com.hjq.toast.** {*;}
  10. # 权限请求框架
  11. -keep class com.hjq.permissions.** {*;}
  12. #移除log 测试了下没有用还是建议自己定义一个开关控制是否输出日志
  13. #-assumenosideeffects class android.util.Log {
  14. # public static boolean isLoggable(java.lang.String, int);
  15. # public static int v(...);
  16. # public static int i(...);
  17. # public static int w(...);
  18. # public static int d(...);
  19. # public static int e(...);
  20. #}
  21. # webview + js
  22. -keepattributes *JavascriptInterface*
  23. # keep 使用 webview 的类
  24. -keepclassmembers class com.veidy.activity.WebViewActivity {
  25. public *;
  26. }
  27. # keep 使用 webview 的类的所有的内部类
  28. -keepclassmembers class com.veidy.activity.WebViewActivity$*{
  29. *;
  30. }
  31. # 不混淆WebChromeClient中的openFileChooser方法
  32. -keepclassmembers class * extends android.webkit.WebChromeClient{
  33. public void openFileChooser(...);
  34. }
  35. # EventBus3
  36. -keepattributes *Annotation*
  37. -keepclassmembers class ** {
  38. @org.greenrobot.eventbus.Subscribe <methods>;
  39. }
  40. -keep enum org.greenrobot.eventbus.ThreadMode { *; }
  41. -keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
  42. <init>(java.lang.Throwable);
  43. }