From e04bd32edf6acb3455469b2b76f22ca66e7b821e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Mon, 6 May 2024 11:20:58 +0100 Subject: [PATCH 1/4] Add release process --- docs/release.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 docs/release.md diff --git a/docs/release.md b/docs/release.md new file mode 100644 index 00000000..91c1aec4 --- /dev/null +++ b/docs/release.md @@ -0,0 +1,58 @@ +# Website + +0. Check [live][live] version is operational. +1. Ensure latest `main` in git clone. +1. Change `testDeployment` to `false` in `web/status-history/build.gradle.kts`. +1. `gradlew :web:status-history:appengineDeploy` +1. Verify new version is created in [Google Cloud Console][versions]. +1. Check [live][live] version is operational. +1. Clean up old versions in [Google Cloud Console][versions]. + +[live]: https://twisterrob-london.appspot.com/ +[versions]: https://console.cloud.google.com/appengine/versions?serviceId=default&project=twisterrob-london + +# Android + +For the full process see [.github/release.md][releasing]. + +1. Double-check the version number in `android/app/range/build.gradle` is the same as the milestone, if not, PR. +1. Ensure clean latest working copy. + ```shell + git checkout main + git pull + git status + git reset --hard origin/main + ``` +1. Create artifacts + ```shell + gradlew clean :android:app:range:release + ``` +1. Upload `%RELEASE_HOME%\android\net.twisterrob.blt.range*@*.zip` (latest): + * `net.twisterrob.blt.range@*+release.apk` + @ Developer Console + \> Release + \> Testing + \> Closed Testing + \> [Alpha][alpha] + * `proguard_mapping.txt` + @ Developer Console + \> Release + \> [App bundle explorer][bundle-explorer] + \> Downloads tab + \> Assets + \> ReTrace mapping file +1. Publish to Alpha. + 1. Check [Pre-launch Report][pre-launch-report] + Generated in about 15 minutes after upload, if errors, then start again. + 1. Wait until alpha stage is propagated and update current release version on my phone. + 1. Smoke test for no errors. +1. If no errors, Promote to Beta or Prod with staged rollout. + 1. Set up a reminder in calendar to check for crashes and bump rollout. + +[releasing]: https://github.com/TWiStErRob/.github/blob/main/RELEASE.md +[alpha]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/tracks/4697686677597567422 +[bundle-explorer]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/bundle-explorer-selector +[pre-launch-report]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/pre-launch-report/overview + +## Prepare next release +1. Update version number in android/build.gradle anticipating minor and commit to `main`. From bf2a2ea353edbd024635b2a0549e81c8ab2c0dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Mon, 6 May 2024 11:21:11 +0100 Subject: [PATCH 2/4] Bump version number --- android/app/range/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/android/app/range/build.gradle b/android/app/range/build.gradle index 2c99995b..5d4b9d5c 100644 --- a/android/app/range/build.gradle +++ b/android/app/range/build.gradle @@ -5,6 +5,7 @@ plugins { android.defaultConfig.applicationId = "net.twisterrob.blt.range" android.defaultConfig.version { major = 1 + minor = 1 } dependencies { From 510f23675a92138192913ea64fa627558cdf0b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Mon, 6 May 2024 11:21:19 +0100 Subject: [PATCH 3/4] Remove unused dependency --- gradle/libs.versions.toml | 2 -- 1 file changed, 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 4f43f679..8b039c61 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,7 +13,6 @@ kotlin-serialization = "1.6.3" jsr305 = "3.0.2" kxml2 = "2.3.0" -sqlite-jdbc = "3.45.3.0" androidx-swiperefreshlayout = "1.1.0" androidx-fragment = "1.7.0" @@ -68,7 +67,6 @@ snakeyaml = { module = "org.yaml:snakeyaml", version.ref = "snakeyaml" } jsr305 = { module = "com.google.code.findbugs:jsr305", version.ref = "jsr305" } kxml2 = { module = "net.sf.kxml:kxml2", version.ref = "kxml2" } -sqlite-jdbc = { module = "org.xerial:sqlite-jdbc", version.ref = "sqlite-jdbc" } kotlin-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlin-datetime" } kotlin-serialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "kotlin-serialization" } kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } From 71b05930dc53afaf8b3f48051e61655b52302287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Mon, 6 May 2024 11:22:55 +0100 Subject: [PATCH 4/4] Fix path --- docs/release.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release.md b/docs/release.md index 91c1aec4..1f1bdb1b 100644 --- a/docs/release.md +++ b/docs/release.md @@ -55,4 +55,4 @@ For the full process see [.github/release.md][releasing]. [pre-launch-report]: https://play.google.com/console/developers/7995455198986011414/app/4972239006863689375/pre-launch-report/overview ## Prepare next release -1. Update version number in android/build.gradle anticipating minor and commit to `main`. +1. Update version number in android/app/range/build.gradle anticipating minor and commit to `main`.