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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |