Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set android.manifest.versionCode property.

  • Loading branch information...
commit 76689704bf2f4cedbb0fb6ec3e4c44926be05539 1 parent 9923959
@quiffman authored
View
3  src/main/java/com/jayway/maven/plugins/android/standalonemojos/ManifestUpdateMojo.java
@@ -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.
Something went wrong with that request. Please try again.