fix: derive versionCode from VERSION to prevent ApkIdentityMismatch (v2.9.34) Root cause of the in-app update failure: versionCode was hardcoded at 240167 and never bumped across releases. The updater's identity gate requires versionCode > currentVersionCode, so every update since the last code bump failed with ApkIdentityException. Fix: versionCode is now computed as major*1000000 + minor*10000 + patch*10, guaranteeing strict monotonic increase with every VERSION bump. For 2.9.34 this yields 2090340, well above the old 240167.
$ koh steal kepr.uk/peach-android@ab1956ea1261
·
parent: b5bc115f86c6
discussion
log in to leave a comment.