Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 47 lines (41 sloc) 2.057 kb
c7d0aaf v1.15
Carles Sentis authored
1 <!-- Proguard Properties -->
2 <property name="obfuscate.dir" value="obf" />
3 <property name="obfuscate.absolute.dir" location="${obfuscate.dir}" />
4 <property name="android-jar-preobfuscate" value="${obfuscate.absolute.dir}/original.jar" />
5 <property name="android-jar-postobfuscate" value="${obfuscate.absolute.dir}/postobf.jar" />
6 <property name="out.dex.input.absolute.dir" value="${android-jar-postobfuscate}" />
7
8 <!-- replaces the post-compile step from ant_rules_r3 -->
9 <target name="-post-compile" depends="-dex-obfuscate,-dex-no-obfuscate">
10 </target>
11
12 <target name="-dex-no-obfuscate" unless="build.mode.release">
13 <mkdir dir="${obfuscate.absolute.dir}" />
14 <jar basedir="${out.classes.dir}" destfile="${android-jar-postobfuscate}" />
15 </target>
16
17 <!-- Converts this project's .class files into .dex files -->
18 <target name="-dex-obfuscate" if="build.mode.release">
19 <property name="proguard-jar" value="${proguard.dir}/proguard.jar" />
20 <property name="proguard-conf.dir" value="" />
21 <property name="proguard-conf.absolute.dir" location="${proguard-conf.dir}" />
22 <property name="proguard-conf" value="${proguard-conf.absolute.dir}/procfg.txt" />
23 <path id="fullclasspath">
24 <path refid="android.target.classpath"/>
25 <pathelement path="${external.libs.dir}"/>
26 </path>
27 <property name="libraryjarpath" refid="fullclasspath"/>
28 <!-- Add Proguard Task -->
29 <taskdef resource="proguard/ant/task.properties" classpath="${proguard-jar}" />
30
31 <mkdir dir="${obfuscate.absolute.dir}" />
32 <delete file="${android-jar-preobfuscate}"/>
33 <delete file="${android-jar-postobfuscate}"/>
34 <jar basedir="${out.classes.dir}" destfile="${android-jar-preobfuscate}" />
35 <proguard>
36 @${proguard-conf}
37 -injars ${android-jar-preobfuscate}
38 -outjars ${android-jar-postobfuscate}
39 -libraryjars ${libraryjarpath}
40 -dump ${obfuscate.absolute.dir}/dump.txt
41 -printseeds ${obfuscate.absolute.dir}/seeds.txt
42 -printusage ${obfuscate.absolute.dir}/usage.txt
43 -printmapping ${obfuscate.absolute.dir}/mapping.txt
44 </proguard>
45 </target>
46
Something went wrong with that request. Please try again.