Skip to content

Commit

Permalink
Set android.manifest.versionCode property.
Browse files Browse the repository at this point in the history
  • Loading branch information
quiffman committed Apr 25, 2012
1 parent 9923959 commit 7668970
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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)) {
Expand Down

0 comments on commit 7668970

Please sign in to comment.