38cdd4429f
So all most commonly-used flags go to proguard_basic_keeps.flags and they will still be applied when LOCAL_PROGUARD_ENABLED=nosystem. Bug: 9203442 Change-Id: If018076dc625ac1efe31898b179dbba850218aaf
17 lines
528 B
Text
17 lines
528 B
Text
# dex does not like code run through proguard optimize and preverify steps.
|
|
-dontoptimize
|
|
-dontpreverify
|
|
|
|
# Don't obfuscate. We only need dead code striping.
|
|
-dontobfuscate
|
|
|
|
# Add this flag in your package's own configuration if it's needed.
|
|
#-flattenpackagehierarchy
|
|
|
|
# Keep classes and methods that have the guava @VisibleForTesting annotation
|
|
-keep @com.google.common.annotations.VisibleForTesting class *
|
|
-keepclassmembers class * {
|
|
@com.google.common.annotations.VisibleForTesting *;
|
|
}
|
|
|
|
-include proguard_basic_keeps.flags
|