diff options
author | Xavier Ducrohet <xav@android.com> | 2010-05-27 19:20:14 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-05-28 11:38:31 -0700 |
commit | a16573f5ac099613f4c3cae5e4c2b6584f8b48aa (patch) | |
tree | eba63e8135ab1b951b1b2ab6468cad7605908ba7 /anttasks/src/com | |
parent | 920f2a5c12d58d3e6054fcbf3293b1fa912c9af3 (diff) | |
download | sdk-a16573f5ac099613f4c3cae5e4c2b6584f8b48aa.zip sdk-a16573f5ac099613f4c3cae5e4c2b6584f8b48aa.tar.gz sdk-a16573f5ac099613f4c3cae5e4c2b6584f8b48aa.tar.bz2 |
New log format for multi-apk export.
Also added support for supports-screens in the log,
and fixed supports-screens parsing.
Change-Id: I702fb511eb4da0094917d7c0d9fe792f582adeb2
Diffstat (limited to 'anttasks/src/com')
-rw-r--r-- | anttasks/src/com/android/ant/MultiApkExportTask.java | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/anttasks/src/com/android/ant/MultiApkExportTask.java b/anttasks/src/com/android/ant/MultiApkExportTask.java index 3d1131b..151b81b 100644 --- a/anttasks/src/com/android/ant/MultiApkExportTask.java +++ b/anttasks/src/com/android/ant/MultiApkExportTask.java @@ -165,8 +165,8 @@ public class MultiApkExportTask extends Task { } // set the version code, and filtering - String compositeVersionCode = getVersionCodeString(versionCode, apk); - addProp(subAnt, "version.code", compositeVersionCode); + int compositeVersionCode = apk.getCompositeVersionCode(versionCode); + addProp(subAnt, "version.code", Integer.toString(compositeVersionCode)); System.out.println("Composite versionCode: " + compositeVersionCode); String abi = apk.getAbi(); if (abi != null) { @@ -279,20 +279,6 @@ public class MultiApkExportTask extends Task { } /** - * Computes and returns the composite version code - * @param versionCode the major version code. - * @param apkData the apk data. - * @return the composite versionCode to be used in the manifest. - */ - private String getVersionCodeString(int versionCode, ApkData apkData) { - int trueVersionCode = versionCode * MultiApkExportHelper.OFFSET_VERSION_CODE; - trueVersionCode += apkData.getBuildInfo() * MultiApkExportHelper.OFFSET_BUILD_INFO; - trueVersionCode += apkData.getMinor(); - - return Integer.toString(trueVersionCode); - } - - /** * Returns the {@link File} for the build log. * @param appPackage * @param versionCode |