Skip to content

Commit

Permalink
fix(android): Subsequent build crash with missing version data
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Dec 12, 2024
1 parent f00349e commit 2e92530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ private boolean isNewBinary() {
PackageManager pm = getContext().getPackageManager();
PackageInfo pInfo = InternalUtils.getPackageInfo(pm, getContext().getPackageName());
versionCode = Integer.toString((int) PackageInfoCompat.getLongVersionCode(pInfo));
versionName = pInfo.versionName;
if (pInfo.versionName != null) versionName = pInfo.versionName;
} catch (Exception ex) {
Logger.error("Unable to get package info", ex);
}
Expand Down

0 comments on commit 2e92530

Please sign in to comment.