Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into newFields
Browse files Browse the repository at this point in the history
  • Loading branch information
hsiafan authored Nov 1, 2019
2 parents 00f1451 + 860e651 commit 061d336
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public void onStartTag(XmlNodeStartTag xmlNodeStartTag) {
case "manifest":
apkMetaBuilder.setPackageName(attributes.getString("package"));
apkMetaBuilder.setVersionName(attributes.getString("versionName"));
apkMetaBuilder.setVersionCode(attributes.getLong("versionCode"));
apkMetaBuilder.setRevisionCode(attributes.getLong("revisionCode"));
apkMetaBuilder.setSharedUserId(attributes.getString("sharedUserId"));
apkMetaBuilder.setSharedUserLabel(attributes.getString("sharedUserLabel"));
Expand All @@ -89,6 +88,16 @@ public void onStartTag(XmlNodeStartTag xmlNodeStartTag) {
apkMetaBuilder.setIsSplitRequired(attributes.getBoolean("isSplitRequired", false));
apkMetaBuilder.setIsolatedSplits(attributes.getBoolean("isolatedSplits", false));

Long majorVersionCode = attributes.getLong("versionCodeMajor");
Long versionCode = attributes.getLong("versionCode");
if (majorVersionCode != null) {
if (versionCode == null) {
versionCode = 0L;
}
versionCode = (majorVersionCode << 32) | (versionCode & 0xFFFFFFFFL);
}
apkMetaBuilder.setVersionCode(versionCode);

String installLocation = attributes.getString("installLocation");
if (installLocation != null) {
apkMetaBuilder.setInstallLocation(installLocation);
Expand Down

0 comments on commit 061d336

Please sign in to comment.