This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
versionCode was set incorrectly in v1.1.0 #21
Labels
bug
Something isn't working
status: resolved
This issue has been merged into main and deployed to canary.
Describe the bug
Android uses an integer versionCode property as the means for APKs to specify to Android which version of an app they represent. Android requires that this versionCode increase when a new version is released; that's how it determines (either via the store or via adb) whether a new package represents an "upgrade" or a "downgrade".
We use semantic versioning with our releases for the versionName, and our release template defines a strategy for determining the versionCode from the versionName (for versionName xx.yy.zz, we use versionCode xxyyzz, ie, v1.1.0 should use versionCode 010100).
Unfortunately, right now our release process has humans hand-write the versionName and versionCode in our release build pipeline parameters, and the versionCode that was actually used in v1.1.0 was 011000, not 010100. This means that any future v1.1.1 through v1.10.0 would not end up increasing the versionCode if they were to release using the previous versionCode strategy.
This bug tracks both:
release-build.yaml
, to prevent this specific problem from happening againrelease-build.yaml
that the version specified is greater than any previously released version, to prevent similar classes of issues from happening again (we need to do this manually since we aren't distributing through a store/package repository that enforces this on our behalf, like for most of our other projects)The text was updated successfully, but these errors were encountered: