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');