123456789101112131415161718192021222324252627282930313233343536373839 |
- # 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.
- #-keepclassmembers class com.pan_american.android.data.model.** {*;}
- #
- #-keep class com.haibin.calendarview.** {*;}
- #
- #-keep class com.microsoft.signalr.** {*;}
- #
- #-optimizationpasses 5 # 代码混淆的压缩比例,值介于0-7,默认5
- #-verbose # 混淆时记录日志
- #-dontoptimize # 不优化输入的类文件
- #-ignorewarnings # 忽略警告
- #-dontwarn com.squareup.okhttp.** # 指定类不输出警告信息
- #-dontusemixedcaseclassnames # 混淆后类型都为小写
- #-printmapping mapping.txt # 生成原类名与混淆后类名的映射文件mapping.txt
- #-allowaccessmodification # 优化时允许访问并修改有修饰符的类及类的成员
- #-renamesourcefileattribute SourceFile # 将源码中有意义的类名转换成SourceFile,用于混淆具体崩溃代码
- #-keepattributes SourceFile,LineNumberTable # 保留行号
- #-keepattributes *Annotation*,InnerClasses,Signature,EnclosingMethod # 避免混淆注解、内部类、泛型、匿名类
- #-optimizations !code/simplification/cast,!field/ ,!class/merging/ # 指定混淆时采用的算法
|