【发布时间】:2018-03-19 19:28:04
【问题描述】:
这是我当前的 proguard 文件。我的单元测试和 UI 测试分别在文件夹 androidTest 和 Test 中。
-target 1.7 #Target version
-dontusemixedcaseclassnames #Specifies not to generate mixed-case class names while obfuscating
-dontskipnonpubliclibraryclasses #Specifies not to ignore non-public library classes
-dontpreverify #Specifies not to preverify the processed class files. when eventually targeting Android, it is not necessary, so you can then switch it off to reduce the processing time a bit.
-verbose #Specifies to write out some more information during processing
-optimizations !code/simplification/arithmetic,!code/allocation/variable
-keep class **
-keepclassmembers class *{*;}
-keepattributes *
【问题讨论】:
标签: java android gradle build proguard