Created
January 14, 2012 02:31
-
-
Save dcartoon/1609994 to your computer and use it in GitHub Desktop.
Standard Android ProGuard build.xml Config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Build a path object with all the jar files that must be obfuscated. | |
This include the project compiled source code and any 3rd party jar | |
files. --> | |
<path id="project.jars.ref"> | |
<pathelement location="${preobfuscate.jar.file}" /> | |
<path refid="jar.libs.ref" /> | |
</path> | |
<!-- Set the project jar files Path object into a single property. It'll be | |
all the jar files separated by a platform path-separator. | |
Each path must be quoted if it contains spaces. | |
--> | |
<pathconvert property="project.jars" refid="project.jars.ref"> | |
<firstmatchmapper> | |
<regexpmapper from='^([^ ]*)( .*)$$' to='"\1\2"'/> | |
<identitymapper/> | |
</firstmatchmapper> | |
</pathconvert> | |
<mkdir dir="${obfuscate.absolute.dir}" /> | |
<delete file="${preobfuscate.jar.file}"/> | |
<delete file="${obfuscated.jar.file}"/> | |
<jar basedir="${out.classes.absolute.dir}" | |
destfile="${preobfuscate.jar.file}" /> | |
<proguard> | |
@${proguard.config} | |
-injars ${project.jars} | |
-outjars "${obfuscated.jar.file}" | |
-libraryjars ${android.libraryjars} | |
-dump "${obfuscate.absolute.dir}/dump.txt" | |
-printseeds "${obfuscate.absolute.dir}/seeds.txt" | |
-printusage "${obfuscate.absolute.dir}/usage.txt" | |
-printmapping "${obfuscate.absolute.dir}/mapping.txt" | |
</proguard> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment