mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-09-12 22:33:37 -04:00
2.3 KiB
2.3 KiB
This documentation is for maintainers. If you're a user, please ignore it.
General versioning note
Android releases should be at least versionCode 1000 and end on an even number (the uneven numbers are used for F-Droid legacy builds). Valid: 1002, 1004, etc.
WearOS releases should be between 200 and 999 and only have to be bumped by 1. Valid: 200, 201, etc.
Version codes below 200 are from the pre-WearOS days.
When releasing, do the following:
- Press "Commit" and "Push" on Weblate to ensure all translations are up to date
- Merge Weblate pull request
- Make sure to pull the
mainbranch locally - Update
CHANGELOG.mdwith the new version name and the release date - Update the relevant build.gradle.kts with the new
versionCodeandversionName- For Android releases, this is
app/build.gradle.kts, make sure to use an even number above 1000 - For Wear OS releases, this is
wear/build.gradle.kts, make sure to use a number between 200 and 1000
- For Android releases, this is
- Create a commit for the new release:
- For Android releases,
git add CHANGELOG.md app/build.gradle.kts && git commit -m "Release Catima <VERSION>" - For Wear OS releases,
git add CHANGELOG.md wear/build.gradle.kts && git commit -m "Release Catima Wear OS <VERSION>"
- For Android releases,
- Build the new .apks:
- For Android releases,
BUILD_TYPE=app KEYSTORE=/path/to/keystore KEYSTORE_ALIAS=catima ./build.sh - For Wear OS releases,
BUILD_TYPE=wear KEYSTORE=/path/to/keystore KEYSTORE_ALIAS=catima ./build.sh
- For Android releases,
- Upload the Google release to Google Play Open Testing
- For Android releases, this is
app/build/outputs/apk/gplay/release/app-gplay-release.apk - For Wear OS releases, this is
wear/build/outputs/apk/release/wear-release.apk(Wear OS currently does not use flavours)
- For Android releases, this is
- Push the version update commit:
git push - Create a new release on GitHub and attach the non-Google APKs and
SHA256SUMSfiles- For Android releases, this is
app/build/outputs/apk/foss/release/app-foss-release.apkandSHA256SUMS. Releases are tagged vX.X.X. - For Wear OS releases, this is
wear/build/outputs/apk/release/wear-release.apkandSHA256SUMs(Wear OS currently does not use flavours). Releases are tagged vX.X.X-wearos.
- For Android releases, this is
- When pushing the release to Google Play Production, update the metadata there:
bundle exec fastlane supply --version_code <VERSION_CODE>