| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # Add project specific ProGuard rules here.
- # You can control the set of applied configuration files using the
- # proguardFiles setting in build.gradle.
- #
- # For more details, see
- # http://developer.android.com/guide/developing/tools/proguard.html
- # If your project uses WebView with JS, uncomment the following
- # and specify the fully qualified class name to the JavaScript interface
- # class:
- #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
- # public *;
- #}
- # Uncomment this to preserve the line number information for
- # debugging stack traces.
- #-keepattributes SourceFile,LineNumberTable
- # If you keep the line number information, uncomment this to
- # hide the original source file name.
- #-renamesourcefileattribute SourceFile
- #字典混淆
- -obfuscationdictionary dict.txt
- -classobfuscationdictionary dict.txt
- -packageobfuscationdictionary dict.txt
- #代码混淆级别
- -optimizationpasses 5
- # 是否混淆第三方jar
- -dontskipnonpubliclibraryclasses
- # 混淆时是否做预校验
- -dontpreverify
- # 混淆时是否记录日志
- -verbose
- # 混淆时所采用的算法
- -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
- -keepattributes Exceptions,InnerClasses,Signature,SourceFile,LineNumberTable
- -keepattributes *Annotation*
- -keepattributes EnclosingMethod
- -dontwarn com.google.**
- -keep class com.google.**{*;}
|