summaryrefslogtreecommitdiffstats
path: root/core/proguard_tests.flags
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2013-08-21 18:32:49 -0700
committerYing Wang <wangying@google.com>2013-08-22 17:12:38 -0700
commit7311a344bed507062e781ba70331d85652c217d8 (patch)
tree1712442faa0cc5ea167485d3620ac94a488074b5 /core/proguard_tests.flags
parentf4723fa49b6e61f727b6321a4006ee8ba3f393b9 (diff)
downloadbuild-7311a344bed507062e781ba70331d85652c217d8.tar.gz
build-7311a344bed507062e781ba70331d85652c217d8.tar.bz2
build-7311a344bed507062e781ba70331d85652c217d8.zip
Make it easier to enable obfuscation and optimization.
With this change, use: * LOCAL_PROGUARD_ENABLED := obfuscation # to enable obfuscation * LOCAL_PROGUARD_ENABLED := optimization # to enable optimization * LOCAL_PROGUARD_ENABLED := obfuscation optimization # to enable both Now the meaning of the LOCAL_PROGUARD_ENABLED options: * full: Use the build system's default configurations: with shrink but no obfuscation or optimization, global proguard flags in build/core/proguard.flags are applied. * custom: The same as "full" except no aapt-generated resource-related proguard flags. * nosystem: Don't use any build system's default configurations; but aapt-generated proguard flags are still applied. You are responsible for any other flags. * disabled: Disable proguard. * obfuscation: The same as "full" but with obfuscation enabled. * optimization: The same as "full" but with optimization enabled. * no value (the default): The build system chooses the proper value: "full" if it's an app; "disabled" if it's a library. You can use more than 1 of them in a meaningful combination, for example: LOCAL_PROGUARD_ENABLED := obfuscation optimization Bug: 10307372 Change-Id: Id248caca3048e99547f16559fae74f4afe85c354
Diffstat (limited to 'core/proguard_tests.flags')
-rw-r--r--core/proguard_tests.flags6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/proguard_tests.flags b/core/proguard_tests.flags
index f4063d668..4481a1bab 100644
--- a/core/proguard_tests.flags
+++ b/core/proguard_tests.flags
@@ -1,5 +1,9 @@
# Keep everything for tests
--dontshrink -dontobfuscate
+-dontshrink
+
+# But we may want to obfuscate if the main app gets obfuscated.
+# This flag has been moved to the makefiles.
+#-dontobfuscate
#-keep class * extends junit.framework.TestCase {
# public void test*();