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 <assistant@shakespeare.diy>
This commit is contained in:
parent
41595159d9
commit
4bef95132b
3 changed files with 11 additions and 6 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue