diff --git a/docs/README.md b/docs/README.md index a7b04e5..a4834fa 100644 --- a/docs/README.md +++ b/docs/README.md @@ -137,6 +137,7 @@ npm run apk:release # releases/xenia-waiter-.apk, signed, AND copied to p **CS-10. `MIN_SHELL_BUILD` guards native compatibility.** When web code starts relying on something new in `android/` (a plugin, a Java class, a manifest change), bump `MIN_SHELL_BUILD` in `src/native/shell.js` **and** `versionCode`, in the same commit. Phones with an older APK then keep their current UI and show "update the app", instead of loading a UI that calls missing native code. Every bundle must call `markBundleReady()` at start (`BundleSync` does this); otherwise it is rolled back after 15 s. +The native plugins (`@capacitor/*`, `@capgo/*`) are pinned to **exact** versions in `waiter_pwa/package.json` (no `^`), so `npm install`/`npm update` never move them. Upgrading one is a deliberate change under this rule: new exact version, `versionCode` + `MIN_SHELL_BUILD` bump, Android e2e (`stacks`) run. **CS-9. Anything a native build needs must survive `npx cap sync`.** `android/app/src/main/assets/public` and the generated configs are rebuilt on every sync, so never edit them. Native changes go in `android/app/src/main/**` (manifest, res, java) or `capacitor.config.json`. diff --git a/package-lock.json b/package-lock.json index fb89207..222f134 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3610,10 +3610,10 @@ "waiter_pwa": { "version": "0.0.0", "dependencies": { - "@capacitor/android": "^8.5.2", - "@capacitor/app": "^8.1.1", - "@capacitor/core": "^8.5.2", - "@capgo/capacitor-updater": "^8.51.25", + "@capacitor/android": "8.5.2", + "@capacitor/app": "8.1.1", + "@capacitor/core": "8.5.2", + "@capgo/capacitor-updater": "8.51.25", "@tanstack/react-query": "^5.100.11", "axios": "^1.15.1", "dexie": "^4.4.2", @@ -3626,7 +3626,7 @@ "zustand": "^5.0.12" }, "devDependencies": { - "@capacitor/cli": "^8.5.2", + "@capacitor/cli": "8.5.2", "@eslint/js": "^9.39.4", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3", diff --git a/waiter_pwa/package.json b/waiter_pwa/package.json index a542173..eb94354 100644 --- a/waiter_pwa/package.json +++ b/waiter_pwa/package.json @@ -14,10 +14,10 @@ "test": "node --test \"tests/*.test.mjs\"" }, "dependencies": { - "@capacitor/android": "^8.5.2", - "@capacitor/app": "^8.1.1", - "@capacitor/core": "^8.5.2", - "@capgo/capacitor-updater": "^8.51.25", + "@capacitor/android": "8.5.2", + "@capacitor/app": "8.1.1", + "@capacitor/core": "8.5.2", + "@capgo/capacitor-updater": "8.51.25", "@tanstack/react-query": "^5.100.11", "axios": "^1.15.1", "dexie": "^4.4.2", @@ -30,7 +30,7 @@ "zustand": "^5.0.12" }, "devDependencies": { - "@capacitor/cli": "^8.5.2", + "@capacitor/cli": "8.5.2", "@eslint/js": "^9.39.4", "@types/react": "^19.2.14", "@types/react-dom": "^19.2.3",