diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2010-09-27 12:59:34 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2010-09-27 12:59:34 -0700 |
commit | 882db2aad5e89505733c7fb9bfda9ba139412fa1 (patch) | |
tree | c5b4eaee5f631b64b25bb8f4b7129786c3da6093 | |
parent | 23ca51ca7585fc12301185885df4ed32b3130c18 (diff) | |
parent | c83ab24062531e9aa2b166596e954375fb53492b (diff) | |
download | sdk-882db2aad5e89505733c7fb9bfda9ba139412fa1.zip sdk-882db2aad5e89505733c7fb9bfda9ba139412fa1.tar.gz sdk-882db2aad5e89505733c7fb9bfda9ba139412fa1.tar.bz2 |
merge from open-source master
Change-Id: I042d0153b76bd8b164a815165f80d29b4ed94df2
-rw-r--r-- | files/ant/main_rules.xml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/files/ant/main_rules.xml b/files/ant/main_rules.xml index 121b20e..192bd94 100644 --- a/files/ant/main_rules.xml +++ b/files/ant/main_rules.xml @@ -362,6 +362,23 @@ your build.xml and it'll be called instead of this one. --> <target name="-post-compile"/> + <!-- Obfuscate target + This is only active in release builds when proguard.config is defined + in default.properties. + + To replace Proguard with a different obfuscation engine: + Override the following targets in your build.xml, before the call to <setup> + -release-obfuscation-check + Check whether obfuscation should happen, and put the result in a property. + -debug-obfuscation-check + Obfuscation should not happen. Set the same property to false. + -obfuscate + ** Make sure unless="do.not.compile" is used in the target definition ** + check if the property set in -debug/release-obfuscation-check is set to true. + If true: + Perform obfuscation + Set property out.dex.input.absolute.dir to be the output of the obfuscation + --> <target name="-obfuscate" unless="do.not.compile"> <if condition="${proguard.enabled}"> <then> |