Commit graph

5 commits

Author SHA1 Message Date
Marc Durdin
95527493e2 fix(android): bump version_code major calculation
Version code is, for 17.1.33: 1810033. This supports up to 9999
builds for a given major.minor version. We only support up to 9 minor
versions for a given major version but at present we are not using
minor versions at all.

Despite this calculation, the version_code should be treated as an
opaque integer, used only for Play Store publishing.

NOTE: accidental publish of beta 17.0.6 during 16.0 beta cycle has
forced a version_major bump, which is a permanent change. Relates to
issue #7705.
2022-11-17 05:43:56 +11:00
Marc Durdin
9798f86b16 chore(android): rework versionCode system
We now generate a versionCode directly from the release version number,
and this is what we use for Google Play Store to ensure that we have
an always-incrementing version number.
2020-12-15 06:31:01 +11:00
Darcy Wong
fe09ac73fe fix(android/app): Fix environment portion of app version string
When displaying the Info page of alpha builds from the Play Store, we noticed the version string displayed the wrong environment:
`14.0.X-alpha-local` (CI builds should have ended with `-alpha`).

It turns out  the `VERSION_` shell variables  from `build-utils.sh` aren't visible in `version.gradle` (though CI environment variables like `build_counter` are visible).

This PR:
* Exports the two VERSION strings needed in version.gradle
* Updates the Info page to simply display `BuildConfig.VERSION_NAME`
2020-08-06 10:34:26 +07:00
Marc Durdin
b5f32fbbaf fix(android): use environment and version-with-tag for sentry 2020-04-28 11:34:22 +10:00
Marc Durdin
742aee39d7 chore(android): use new version infrastructure 2020-01-29 08:55:19 +11:00