diff options
author | Xavier Ducrohet <xav@android.com> | 2010-09-27 10:09:55 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-09-27 10:09:55 -0700 |
commit | c83ab24062531e9aa2b166596e954375fb53492b (patch) | |
tree | dccc3ec0e6c77d2028bef2d64e3a9e3a907dcf11 /files | |
parent | df70e0290f9634aa0431917c59912607bb15313a (diff) | |
download | sdk-c83ab24062531e9aa2b166596e954375fb53492b.zip sdk-c83ab24062531e9aa2b166596e954375fb53492b.tar.gz sdk-c83ab24062531e9aa2b166596e954375fb53492b.tar.bz2 |
Ant doc on how to replace proguard.
Change-Id: I27faad2282fbe6cff565d945c2b64d42d31db1fe
Diffstat (limited to 'files')
-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> |