Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: build/android/ant/apk-obfuscate.xml

Issue 12922004: Fix proguard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@antpy
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- 2 <!--
3 Copyright (C) 2005-2008 The Android Open Source Project 3 Copyright (C) 2005-2008 The Android Open Source Project
4 4
5 Licensed under the Apache License, Version 2.0 (the "License"); 5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License. 6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at 7 You may obtain a copy of the License at
8 8
9 http://www.apache.org/licenses/LICENSE-2.0 9 http://www.apache.org/licenses/LICENSE-2.0
10 10
(...skipping 11 matching lines...) Expand all
22 <property name="out.dir" value="bin" /> 22 <property name="out.dir" value="bin" />
23 <property name="out.absolute.dir" location="${out.dir}" /> 23 <property name="out.absolute.dir" location="${out.dir}" />
24 <property name="out.classes.absolute.dir" location="${out.dir}/classes" /> 24 <property name="out.classes.absolute.dir" location="${out.dir}/classes" />
25 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm l" /> 25 <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xm l" />
26 26
27 <!-- tools location --> 27 <!-- tools location -->
28 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/> 28 <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
29 <property name="target" value="android-${ANDROID_SDK_VERSION}"/> 29 <property name="target" value="android-${ANDROID_SDK_VERSION}"/>
30 <property name="android.tools.dir" location="${sdk.dir}/tools" /> 30 <property name="android.tools.dir" location="${sdk.dir}/tools" />
31 31
32 <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" />
33 <path id="project.target.class.path">
34 <pathelement location="${project.target.android.jar}" />
35 </path>
36
32 37
33 <!-- jar file from where the tasks are loaded --> 38 <!-- jar file from where the tasks are loaded -->
34 <path id="android.antlibs"> 39 <path id="android.antlibs">
35 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> 40 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
36 </path> 41 </path>
37 42
38 <!-- Custom tasks --> 43 <!-- Custom tasks -->
39 <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> 44 <taskdef resource="anttasks.properties" classpathref="android.antlibs" />
40 45
41 <!-- Classpath for javac --> 46 <!-- Classpath for javac -->
(...skipping 21 matching lines...) Expand all
63 <if condition="${project.is.testapp}"> 68 <if condition="${project.is.testapp}">
64 <then> 69 <then>
65 <!-- get the project manifest package --> 70 <!-- get the project manifest package -->
66 <xpath input="${out.manifest.abs.file}" 71 <xpath input="${out.manifest.abs.file}"
67 expression="/manifest/@package" output="project.app.package" /> 72 expression="/manifest/@package" output="project.app.package" />
68 <property name="create.test.jar.file" 73 <property name="create.test.jar.file"
69 location="${CREATE_TEST_JAR_PATH}" /> 74 location="${CREATE_TEST_JAR_PATH}" />
70 <script language="javascript" src="${create.test.jar.file}"/> 75 <script language="javascript" src="${create.test.jar.file}"/>
71 </then> 76 </then>
72 </if> 77 </if>
73 <if condition="${proguard.enabled}"> 78 <if>
79 <condition>
80 <and>
81 <istrue value="${proguard.enabled}"/>
82 <equals arg1="${CONFIGURATION_NAME}" arg2="Release"/>
83 </and>
84 </condition>
74 <then> 85 <then>
75 <property name="obfuscate.absolute.dir" location="${out.absolute.dir}/pr oguard"/> 86 <property name="obfuscate.absolute.dir" location="${out.absolute.dir}/pr oguard"/>
76 <property name="preobfuscate.jar.file" value="${obfuscate.absolute.dir}/ original.jar"/> 87 <property name="preobfuscate.jar.file" value="${obfuscate.absolute.dir}/ original.jar"/>
77 <property name="obfuscated.jar.file" value="${OBFUSCATED_JAR_PATH}"/> 88 <property name="obfuscated.jar.file" value="${OBFUSCATED_JAR_PATH}"/>
78 <property name="obfuscated.jar.abs.file" location="${obfuscated.jar.file }"/> 89 <property name="obfuscated.jar.abs.file" location="${obfuscated.jar.file }"/>
79 90
80 <!-- Add Proguard Tasks --> 91 <!-- Add Proguard Tasks -->
81 <property name="proguard.jar" location="${android.tools.dir}/proguard/li b/proguard.jar"/> 92 <property name="proguard.jar" location="${android.tools.dir}/proguard/li b/proguard.jar"/>
82 <taskdef name="proguard" classname="proguard.ant.ProGuardTask" classpath ="${proguard.jar}"/> 93 <taskdef name="proguard" classname="proguard.ant.ProGuardTask" classpath ="${proguard.jar}"/>
83 94
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 -dump "${obfuscate.absolute.dir}/dump.txt" 148 -dump "${obfuscate.absolute.dir}/dump.txt"
138 -printseeds "${obfuscate.absolute.dir}/seeds.txt" 149 -printseeds "${obfuscate.absolute.dir}/seeds.txt"
139 -printusage "${obfuscate.absolute.dir}/usage.txt" 150 -printusage "${obfuscate.absolute.dir}/usage.txt"
140 -printmapping "${obfuscate.absolute.dir}/mapping.txt" 151 -printmapping "${obfuscate.absolute.dir}/mapping.txt"
141 </proguard> 152 </proguard>
142 </then> 153 </then>
143 </if> 154 </if>
144 <touch file="${STAMP}" /> 155 <touch file="${STAMP}" />
145 </target> 156 </target>
146 </project> 157 </project>
OLDNEW
« no previous file with comments | « no previous file | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698