proguard-rules.pro 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #字典混淆
  20. -obfuscationdictionary dict.txt
  21. -classobfuscationdictionary dict.txt
  22. -packageobfuscationdictionary dict.txt
  23. #代码混淆级别
  24. -optimizationpasses 5
  25. # 是否混淆第三方jar
  26. -dontskipnonpubliclibraryclasses
  27. # 混淆时是否做预校验
  28. -dontpreverify
  29. # 混淆时是否记录日志
  30. -verbose
  31. # 混淆时所采用的算法
  32. -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  33. -keepattributes Exceptions,InnerClasses,Signature,SourceFile,LineNumberTable
  34. -keepattributes *Annotation*
  35. -keepattributes EnclosingMethod
  36. -dontwarn com.google.**
  37. -keep class com.google.**{*;}