OLD | NEW |
---|---|
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 |
11 Unless required by applicable law or agreed to in writing, software | 11 Unless required by applicable law or agreed to in writing, software |
12 distributed under the License is distributed on an "AS IS" BASIS, | 12 distributed under the License is distributed on an "AS IS" BASIS, |
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 See the License for the specific language governing permissions and | 14 See the License for the specific language governing permissions and |
15 limitations under the License. | 15 limitations under the License. |
16 --> | 16 --> |
17 | 17 |
18 <project default="-do-sign"> | 18 <project default="-package"> |
19 <property name="verbose" value="false" /> | 19 <property name="verbose" value="false" /> |
20 <property name="out.dir" location="${OUT_DIR}" /> | 20 <property name="out.dir" location="${OUT_DIR}" /> |
21 <!-- Output directories --> | 21 <!-- Output directories --> |
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.res.absolute.dir" location="${out.dir}/res" /> | 24 <property name="out.res.absolute.dir" location="${out.dir}/res" /> |
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}"/> |
(...skipping 10 matching lines...) Expand all Loading... | |
39 <!-- Custom tasks --> | 39 <!-- Custom tasks --> |
40 <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> | 40 <taskdef resource="anttasks.properties" classpathref="android.antlibs" /> |
41 | 41 |
42 <condition property="build.target" value="release" else="debug"> | 42 <condition property="build.target" value="release" else="debug"> |
43 <equals arg1="${CONFIGURATION_NAME}" arg2="Release" /> | 43 <equals arg1="${CONFIGURATION_NAME}" arg2="Release" /> |
44 </condition> | 44 </condition> |
45 <condition property="build.is.packaging.debug" value="true" else="false"> | 45 <condition property="build.is.packaging.debug" value="true" else="false"> |
46 <equals arg1="build.target" arg2="debug" /> | 46 <equals arg1="build.target" arg2="debug" /> |
47 </condition> | 47 </condition> |
48 | 48 |
49 <property name="out.final.file" location="${FINAL_APK_PATH}" /> | 49 <property name="out.final.file" location="${FINAL_APK_PATH}" /> |
Yaron
2013/04/09 05:37:16
Remove
cjhopman
2013/04/09 15:49:47
Done.
| |
50 | 50 |
51 <!-- Disables automatic signing. --> | 51 <!-- Disables automatic signing. --> |
52 <property name="build.is.signing.debug" value="false"/> | 52 <property name="build.is.signing.debug" value="false"/> |
53 | 53 |
54 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig ned" --> | 54 <!-- SDK tools assume that out.packaged.file is signed and name it "...-unalig ned" --> |
55 <property name="out.packaged.file" value="${out.dir}/${APK_NAME}-unsigned.apk" /> | 55 <property name="out.packaged.file" value="${out.dir}/${APK_NAME}-unsigned.apk" /> |
56 <property name="out.unaligned.file" value="${out.dir}/${APK_NAME}-unaligned.ap k" /> | 56 <property name="out.unaligned.file" value="${out.dir}/${APK_NAME}-unaligned.ap k" /> |
Yaron
2013/04/09 05:37:16
Remove.
cjhopman
2013/04/09 15:49:47
Done.
| |
57 | 57 |
58 <property name="resource.dir" value="${RESOURCE_DIR}"/> | 58 <property name="resource.dir" value="${RESOURCE_DIR}"/> |
59 <property name="resource.absolute.dir" location="${resource.dir}"/> | 59 <property name="resource.absolute.dir" location="${resource.dir}"/> |
60 | 60 |
61 <property name="asset.dir" value="${ASSET_DIR}" /> | 61 <property name="asset.dir" value="${ASSET_DIR}" /> |
62 <property name="asset.absolute.dir" location="${asset.dir}" /> | 62 <property name="asset.absolute.dir" location="${asset.dir}" /> |
63 | 63 |
64 <property name="native.libs.absolute.dir" location="${NATIVE_LIBS_DIR}" /> | 64 <property name="native.libs.absolute.dir" location="${NATIVE_LIBS_DIR}" /> |
65 | 65 |
66 <property name="aapt" location="${android.platform.tools.dir}/aapt" /> | 66 <property name="aapt" location="${android.platform.tools.dir}/aapt" /> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
139 ignoreAssets="${aapt.ignore.assets}"> | 139 ignoreAssets="${aapt.ignore.assets}"> |
140 <res path="${out.res.absolute.dir}" /> | 140 <res path="${out.res.absolute.dir}" /> |
141 <res path="${resource.absolute.dir}" /> | 141 <res path="${resource.absolute.dir}" /> |
142 <!-- <nocompress /> forces no compression on any files in assets or res/ra w --> | 142 <!-- <nocompress /> forces no compression on any files in assets or res/ra w --> |
143 <!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw --> | 143 <!-- <nocompress extension="xml" /> forces no compression on specific file extensions in assets and res/raw --> |
144 </aapt> | 144 </aapt> |
145 </target> | 145 </target> |
146 | 146 |
147 <property name="dex.file.name" value="classes.dex" /> | 147 <property name="dex.file.name" value="classes.dex" /> |
148 <property name="intermediate.dex.file" location="${out.absolute.dir}/${dex.fil e.name}" /> | 148 <property name="intermediate.dex.file" location="${out.absolute.dir}/${dex.fil e.name}" /> |
149 <property name="source.dir" value="${SOURCE_DIR}" /> | 149 <property name="source.dir" value="${SOURCE_DIR}" /> |
Yaron
2013/04/09 05:37:16
Unrelated but these source.dir and source.absolute
cjhopman
2013/04/09 15:49:47
source.absolute.dir is passed to the apkbuilder ta
| |
150 <property name="source.absolute.dir" location="${source.dir}" /> | 150 <property name="source.absolute.dir" location="${source.dir}" /> |
151 | 151 |
152 | 152 |
153 <!-- Packages the application. --> | 153 <!-- Packages the application. --> |
154 <target name="-package" depends="-package-resources"> | 154 <target name="-package" depends="-package-resources"> |
155 <apkbuilder | 155 <apkbuilder |
156 outfolder="${out.absolute.dir}" | 156 outfolder="${out.absolute.dir}" |
157 resourcefile="${resource.package.file.name}" | 157 resourcefile="${resource.package.file.name}" |
158 apkfilepath="${out.packaged.file}" | 158 apkfilepath="${out.packaged.file}" |
159 debugpackaging="${build.is.packaging.debug}" | 159 debugpackaging="${build.is.packaging.debug}" |
160 debugsigning="${build.is.signing.debug}" | 160 debugsigning="${build.is.signing.debug}" |
161 verbose="${verbose}" | 161 verbose="${verbose}" |
162 hascode="true" | 162 hascode="true" |
163 previousBuildType="/" | 163 previousBuildType="/" |
164 buildType="${build.is.packaging.debug}/${build.is.signing.debug}"> | 164 buildType="${build.is.packaging.debug}/${build.is.signing.debug}"> |
165 <dex path="${intermediate.dex.file}"/> | 165 <dex path="${intermediate.dex.file}"/> |
166 <sourcefolder path="${source.absolute.dir}"/> | 166 <sourcefolder path="${source.absolute.dir}"/> |
167 <nativefolder path="${native.libs.absolute.dir}" /> | 167 <nativefolder path="${native.libs.absolute.dir}" /> |
168 </apkbuilder> | 168 </apkbuilder> |
169 </target> | 169 </target> |
170 | |
171 | |
172 | |
173 <property name="key.store" value="${KEYSTORE_PATH}"/> | |
174 <property name="key.store.password" value="chromium"/> | |
175 <property name="key.alias" value="chromiumdebugkey"/> | |
176 <property name="key.alias.password" value="chromium"/> | |
177 <property name="zipalign" location="${android.tools.dir}/zipalign" /> | |
178 | |
179 <!-- Signs and zipaligns the apk. --> | |
180 <target name="-do-sign" depends="-package"> | |
181 <sequential> | |
182 <echo level="info">Signing final apk...</echo> | |
183 <signapk | |
184 input="${out.packaged.file}" | |
185 output="${out.unaligned.file}" | |
186 keystore="${key.store}" | |
187 storepass="${key.store.password}" | |
188 alias="${key.alias}" | |
189 keypass="${key.alias.password}" /> | |
190 | |
191 <zipalign | |
192 executable="${zipalign}" | |
193 input="${out.unaligned.file}" | |
194 output="${out.final.file}" | |
195 verbose="${verbose}" /> | |
196 <echo level="info">Release Package: ${out.final.file}</echo> | |
197 </sequential> | |
198 </target> | |
199 </project> | 170 </project> |
OLD | NEW |