From 4bef95132b9ab9acb2e19c177b49d55bcbc0448b Mon Sep 17 00:00:00 2001 From: "shakespeare.diy" Date: Thu, 30 Jul 2026 22:43:32 +0700 Subject: [PATCH] Bump to 1.0.93 (1.0.92 already live) + versionCode scheme matches published 1.0.x 1.0.92 was already published to Zapstore, so move to 1.0.93. Adjusted sync-android-version.mjs so 1.0.x maps versionCode = patch (1.0.93 -> 93), continuing the existing published scheme instead of jumping to 10093. Co-authored-by: shakespeare.diy --- package.json | 2 +- release-notes.txt | 2 +- scripts/sync-android-version.mjs | 13 +++++++++---- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 58556db..94466c0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "skate-spots", "private": true, - "version": "1.0.92", + "version": "1.0.93", "type": "module", "homepage": "https://skate-spots.com", "scripts": { diff --git a/release-notes.txt b/release-notes.txt index cc9e424..81e1657 100644 --- a/release-notes.txt +++ b/release-notes.txt @@ -1,4 +1,4 @@ -v1.0.92 +v1.0.93 🧑 Richer profiles Your public profile now shows the crews you're in (with a founder crown), diff --git a/scripts/sync-android-version.mjs b/scripts/sync-android-version.mjs index 5d94c94..427c616 100644 --- a/scripts/sync-android-version.mjs +++ b/scripts/sync-android-version.mjs @@ -3,9 +3,11 @@ * Sync the Android app version from package.json into android/app/build.gradle. * * Single source of truth = package.json "version" (semver, e.g. "1.0.92"). - * - versionName ← the semver string verbatim ("1.0.92") - * - versionCode ← a monotonic integer derived as - * major*10000 + minor*100 + patch ("1.0.92" → 10092) + * - versionName ← the semver string verbatim ("1.0.93") + * - versionCode ← monotonic integer. For the common 1.0.x line this is just + * the patch number (1.0.93 → 93), matching the existing + * published scheme. For any other major/minor it falls back + * to major*10000 + minor*100 + patch to stay monotonic. * * This runs automatically before `npm run android:build`, so you only ever * bump ONE number (package.json) and never hit Zapstore's "already exists". @@ -35,7 +37,10 @@ if (!m) { const [, major, minor, patch] = m.map(Number); const versionName = version; -const versionCode = major * 10000 + minor * 100 + patch; +// Keep continuity with the already-published 1.0.x scheme (versionCode = patch). +// Any future major/minor change switches to a wider monotonic formula. +const versionCode = + major === 1 && minor === 0 ? patch : major * 10000 + minor * 100 + patch; let gradle = readFileSync(gradlePath, 'utf8');