Permalink
Browse files

Set android.manifest.versionCode property.

  • Loading branch information...
1 parent 9923959 commit 76689704bf2f4cedbb0fb6ec3e4c44926be05539 @quiffman committed Apr 25, 2012
@@ -370,6 +370,7 @@ public void updateManifest(File manifestFile) throws IOException, ParserConfigur
}
currentVersionCode++;
manifestElement.setAttribute(ATTR_VERSION_CODE, String.valueOf(currentVersionCode));
+ project.getProperties().setProperty("android.manifest.versionCode", String.valueOf(currentVersionCode));
dirty = true;
}
@@ -382,6 +383,7 @@ public void updateManifest(File manifestFile) throws IOException, ParserConfigur
Integer.toString(artifactVersion.getIncrementalVersion());
getLog().info("Setting " + ATTR_VERSION_CODE + " to " + verCode);
manifestElement.setAttribute(ATTR_VERSION_CODE, verCode);
+ project.getProperties().setProperty("android.manifest.versionCode", String.valueOf(verCode));
dirty = true;
}
@@ -396,6 +398,7 @@ public void updateManifest(File manifestFile) throws IOException, ParserConfigur
manifestElement.setAttribute(ATTR_VERSION_CODE, String.valueOf(parsedVersionCode));
dirty = true;
}
+ project.getProperties().setProperty("android.manifest.versionCode", String.valueOf(parsedVersionCode));
}
if (!StringUtils.isEmpty(parsedSharedUserId)) {

0 comments on commit 7668970

Please sign in to comment.