chore(waiter): pin the Capacitor/Capgo native plugins to exact versions

A native plugin upgrade needs a versionCode + MIN_SHELL_BUILD bump (CS-10), so it
must never arrive as a side effect of npm install/update (it broke UI-bundle
updates during platform-v2 step 2.1). Versions unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 18:15:19 +02:00
co-authored by Claude Opus 5.5
parent 905c2955b0
commit 17bef9915f
3 changed files with 11 additions and 10 deletions
+1
View File
@@ -137,6 +137,7 @@ npm run apk:release # releases/xenia-waiter-<ver>.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`.