[docs] TauriPlatforms: Gates on the merged tree, where IndexedDB lives on Android, handover

This commit is contained in:
2026-11-17 19:23:46 +01:00
parent 08c188ccee
commit 2c3a71c12d
3 changed files with 45 additions and 7 deletions
+19 -3
View File
@@ -29,7 +29,22 @@ without visible fetches. Nothing was installed system-wide. On the tablet: only
Filled from the run on the branch head: Filled from the run on the branch head:
GATES Run on the branch after `main` (the sunrise, Coyhaique) was merged into it, 2026-11-17:
| Gate | Result |
|:--|:--|
| `pnpm lint`, `pnpm typecheck` | 0 problems (svelte-check 0 errors) |
| `pnpm lint:copy` | 21 files, 0 problems |
| `pnpm validate:library` | 0 entries; 78 candidates; 13 of 13 fixtures rejected |
| `pnpm test` (guard 74 % → started; `turbo run test --continue`) | **529 passed**: cpu-guard 13, identity 5, schema 19, content 88, storage 65, art-prep 61, **tauri 40**, engine 174, ui 64 |
| `pnpm test:e2e` (guard 59 %) | 22 passed |
| `pnpm test:offline` (guard 73 %) | 1 passed |
| `pnpm tauri:build` (merged tree) | built; NSIS 1.31 MiB; the desktop check **passed** again |
| `pnpm tauri:android` (merged tree) | built and `aapt2`-verified. **Not re-run on the tablet:** at that moment `adb` hung on the WAVE 10C (another session had it over Wi-Fi adb, an emulator attached too), and this session left it alone. The on-device passes (3 of 5 runs, below) are of the build before the merge, whose shell and privacy were identical; the merge changed the game (the sunrise), not the shell. |
The first gate run, before the merge, failed one content test (`America/Coyhaique`, a zone the
upgraded Node knows); `main` had fixed it meanwhile (`fix/coyhaique`), which is why `main` was
merged into the branch before the final run.
**The app changed** (CLAUDE.md §5.4) only for the shell: the PWA's `App.svelte` now reads one **The app changed** (CLAUDE.md §5.4) only for the shell: the PWA's `App.svelte` now reads one
constant that is `'web'` in its build, so the PWA behaves as before. Rebuilt by the e2e and offline constant that is `'web'` in its build, so the PWA behaves as before. Rebuilt by the e2e and offline
@@ -70,8 +85,8 @@ Seen only through the check's report (`persist()` is asked; on iOS, the install
| 3 | Test honesty | The first APK check read a meta-data value from a 300-character window after its name, which could read the next element's value and pass a wrong switch. | Fixed: it reads the value attribute on the line after the name; a test flips one switch on real `aapt2` output and expects its name; drilled. | | 3 | Test honesty | The first APK check read a meta-data value from a 300-character window after its name, which could read the next element's value and pass a wrong switch. | Fixed: it reads the value attribute on the line after the name; a test flips one switch on real `aapt2` output and expects its name; drilled. |
| 4 | Test honesty | The first APK check let **any** `…DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` through, another app's included. | Fixed: only `<this package>.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION`; drilled. | | 4 | Test honesty | The first APK check let **any** `…DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION` through, another app's included. | Fixed: only `<this package>.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION`; drilled. |
| 5 | Correctness | The first shell-build test asserted the string `"tauri"` in the bundle; the minifier folds `__ROSEA_SHELL__ === 'tauri'` away, so the assertion tested the minifier. | Removed; what the test keeps is that the constant never reaches the webview (it would throw). | | 5 | Correctness | The first shell-build test asserted the string `"tauri"` in the bundle; the minifier folds `__ROSEA_SHELL__ === 'tauri'` away, so the assertion tested the minifier. | Removed; what the test keeps is that the constant never reaches the webview (it would throw). |
| 6 | Correctness | The tablet's USB link dropped three times in an hour (`device offline`, transport ids 1→5), once mid-check. | The check waits for the device and retries a dropped `adb` command, and finds the device again for each visit. A failure for any other reason still fails at once. | | 6 | Correctness | The tablet's USB link dropped at least twice in an hour (`device offline`, transport ids 1 → 4 → 5), once mid-check. | The check waits for the device and retries a dropped `adb` command, and finds the device again for each visit. A failure for any other reason still fails at once. |
| 7 | Test honesty | One tablet run timed out clicking *Her numbers* while the garden animated (Playwright never saw the button stable). | The check activates it by keyboard (focus, Enter). Then two runs in a row passed. Recorded, not hidden: 1 of 5 tablet runs failed this way, 1 on the USB drop. | | 7 | Test honesty | One tablet run timed out clicking *Her numbers* while the garden animated (Playwright never saw the button stable). | The check activates it by keyboard (focus, Enter); the run after the fix passed. Recorded, not hidden: of 5 tablet runs, 3 passed, 1 failed this way, 1 on the USB drop. |
| 8 | Privacy | WebView2's environment variables (used by the desktop check to open a debugging port and a temporary data folder) **replace** the app's `additionalBrowserArgs` for that run. | Said in the check's header: the desktop check proves the garden, not WebView2's silence (G-T6). | | 8 | Privacy | WebView2's environment variables (used by the desktop check to open a debugging port and a temporary data folder) **replace** the app's `additionalBrowserArgs` for that run. | Said in the check's header: the desktop check proves the garden, not WebView2's silence (G-T6). |
| 9 | Correctness | Tauri creates `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\` at start even when WebView2's data is elsewhere. | The check's run left that folder empty; it was removed after each run. The player's real data lives there (`EBWebView\`), as §4 says. | | 9 | Correctness | Tauri creates `%LOCALAPPDATA%\cz.mareknovak.domi.rosea\` at start even when WebView2's data is elsewhere. | The check's run left that folder empty; it was removed after each run. The player's real data lives there (`EBWebView\`), as §4 says. |
| 10 | Privacy | The Windows installer's default WebView2 mode downloads the WebView2 bootstrapper from Microsoft if WebView2 is missing. | Noted in the analysis (§3); Windows 10 and 11 ship WebView2. Not changed. | | 10 | Privacy | The Windows installer's default WebView2 mode downloads the WebView2 bootstrapper from Microsoft if WebView2 is missing. | Noted in the analysis (§3); Windows 10 and 11 ship WebView2. Not changed. |
@@ -105,6 +120,7 @@ a word, a count, a badge or a reminder. The apps do not notify. The window has n
| Plugins, IPC | none; no capabilities | none; no capabilities | | Plugins, IPC | none; no capabilities | none; no capabilities |
| Installer | n/a | may fetch the WebView2 bootstrapper (finding 10) | | Installer | n/a | may fetch the WebView2 bootstrapper (finding 10) |
| Crash reporting, analytics | none in `Cargo.toml` (test) or the game | same | | Crash reporting, analytics | none in `Cargo.toml` (test) or the game | same |
| What the webview keeps on the device | `app_webview/` holds the IndexedDB, an **empty** Local Storage database Chromium creates (0-byte log: Rosea writes none), and `AwOriginVisitLoggerPrefs.xml`: hashed visit counters for WebView metrics, which are opted out and cannot leave without `INTERNET`; no backup takes them | `EBWebView\` beside the app; not inspected |
## Reachability ## Reachability
+6 -4
View File
@@ -150,7 +150,7 @@ apps/
# dist/ the PWA, under /Rosea/, with its service worker # dist/ the PWA, under /Rosea/, with its service worker
# dist-tauri/ for the shell: base /, no service worker, no manifest # dist-tauri/ for the shell: base /, no service worker, no manifest
rosea-tauri/ # the Tauri 2 shell -> @rosea/tauri. Wraps apps/rosea/dist-tauri/; imports no package rosea-tauri/ # the Tauri 2 shell -> @rosea/tauri. Wraps apps/rosea/dist-tauri/; imports no package
src-tauri/ # Rust (a window and nothing else), tauri.conf.json, capabilities/ src-tauri/ # Rust (a window and nothing else), tauri.conf.json; no capabilities/, so no IPC
android/ # what must survive `tauri android init` (gen/ is never committed) android/ # what must survive `tauri android init` (gen/ is never committed)
scripts/ # icons from apps/rosea/public/icon.svg; the Android privacy patch scripts/ # icons from apps/rosea/public/icon.svg; the Android privacy patch
@@ -275,7 +275,7 @@ tsx scripts/build-places.ts <folder> # rebuilds the town list from downloade
pnpm tauri:dev # desktop window on the Vite dev server, 127.0.0.1:5173 pnpm tauri:dev # desktop window on the Vite dev server, 127.0.0.1:5173
pnpm tauri:build # desktop release: on Windows an NSIS installer and the .exe pnpm tauri:build # desktop release: on Windows an NSIS installer and the .exe
# needs Rust (MSVC), WebView2, VS Build Tools; macOS/Linux on their own OS # needs Rust (MSVC), WebView2, VS Build Tools; macOS/Linux on their own OS
pnpm tauri:android # Android debug APK (universal); needs ANDROID_HOME, NDK 27, JDK 17, pnpm tauri:android # Android debug APK (arm64); needs ANDROID_HOME, NDK 27, JDK 17,
# the four Rust Android targets. Install: adb install -r <apk> # the four Rust Android targets. Install: adb install -r <apk>
pnpm tauri:ios # macOS + Xcode only — refuses elsewhere with the reason (§8) pnpm tauri:ios # macOS + Xcode only — refuses elsewhere with the reason (§8)
pnpm --filter @rosea/tauri test # the shell's tests: config (CSP, name, origin), privacy patch, shell build pnpm --filter @rosea/tauri test # the shell's tests: config (CSP, name, origin), privacy patch, shell build
@@ -321,7 +321,9 @@ replaying `events` through the engine. A number that cannot be derived from the
**Nothing else is written anywhere.** No cookies, no `localStorage`, no analytics of any kind, no **Nothing else is written anywhere.** No cookies, no `localStorage`, no analytics of any kind, no
third-party origin, no fonts or images from a CDN. This holds in the shell too: `localStorage` and third-party origin, no fonts or images from a CDN. This holds in the shell too: `localStorage` and
`sessionStorage` stay forbidden there, and the Rust side writes no file of its own. `sessionStorage` stay forbidden there, and the Rust side writes no file of its own. (The webview keeps
its own profile beside the database: caches, an empty Local Storage folder Chromium makes, and on
Android hashed visit counters for its metrics, which are switched off and cannot be sent.)
**Where IndexedDB lives in each version** (the webview owns the folder; Rosea writes only its **Where IndexedDB lives in each version** (the webview owns the folder; Rosea writes only its
database there — the webview keeps its own caches beside it): database there — the webview keeps its own caches beside it):
@@ -330,7 +332,7 @@ database there — the webview keeps its own caches beside it):
|:--|:--| |:--|:--|
| PWA | the browser profile, per origin; evictable (§8) | | PWA | the browser profile, per origin; evictable (§8) |
| Windows | WebView2's user data folder: `%LOCALAPPDATA%\<identifier>\EBWebView\` | | Windows | WebView2's user data folder: `%LOCALAPPDATA%\<identifier>\EBWebView\` |
| Android | the app's private data: `/data/data/<identifier>/app_webview/` — no Auto Backup, no device transfer (`tauri-platforms.md` D6) | | Android | the app's private data: `/data/data/<identifier>/app_webview/Default/IndexedDB/https_tauri.localhost_0.indexeddb.leveldb` (seen on the tablet) — no Auto Backup, no device transfer (`tauri-platforms.md` D6) |
| macOS / iOS | WKWebView's website data in the app's container (`Library/WebKit/`) *(predicted)* | | macOS / iOS | WKWebView's website data in the app's container (`Library/WebKit/`) *(predicted)* |
| Linux | WebKitGTK's data dir under `~/.local/share/<identifier>/` *(predicted)* | | Linux | WebKitGTK's data dir under `~/.local/share/<identifier>/` *(predicted)* |
+20
View File
@@ -113,6 +113,19 @@ Rewritten at the end of each session (CLAUDE.md §5.1).
still on 127.0.0.1), driven through Chrome's DevTools socket: first open, the town, watering by a still on 127.0.0.1), driven through Chrome's DevTools socket: first open, the town, watering by a
real held touch, the in-game sunset, and **offline** reloads with the server unreachable all pass. real held touch, the in-game sunset, and **offline** reloads with the server unreachable all pass.
When device testing ends, the app used is stopped at once (the author's rule). When device testing ends, the app used is stopped at once (the author's rule).
- **Four versions, one garden (2026-11-17):** merged to `main`, as the author decided: the PWA plus
an Android, iOS and desktop app from one codebase through a Tauri 2 shell, `apps/rosea-tauri`
(CLAUDE.md §2 *Four versions*, §3, §4, §8; ROADMAP *The platform track*). The **Windows app**
(`pnpm tauri:build`) and an **Android debug APK** (`pnpm tauri:android`) were built here; both
passed the garden check (watered, closed, reopened, still watered; nothing outside the origin).
The APK asks for no permission, not even `INTERNET`, and allows no backup (checked on the APK and
on the tablet). **iOS needs a Mac** (G-T1). **No app goes to a player yet:** inside the apps
*Keep her safe* speaks of *this browser*, and on Android saving to a file does nothing (G-T4,
a release blocker). The debug APK and installer are build output on this machine, not committed:
`apps/rosea-tauri/src-tauri/gen/android/app/build/outputs/apk/universal/debug/` and
`apps/rosea-tauri/src-tauri/target/release/bundle/nsis/`. Analysis:
[`.agents/features/tauri-platforms.md`](.agents/features/tauri-platforms.md). Review:
[`.agents/reviews/feature-tauri-platforms.md`](.agents/reviews/feature-tauri-platforms.md).
- **Phase 1 is built in code.** What remains of it is the author's: verified sentences (the petal - **Phase 1 is built in code.** What remains of it is the author's: verified sentences (the petal
appears with them), hosting (G0.13), and the gate itself — two weeks of daily play on a phone. appears with them), hosting (G0.13), and the gate itself — two weeks of daily play on a phone.
@@ -141,6 +154,9 @@ The notification decision is made: in-app only on the web (G0.26).
`packages/engine/src/rose/rose.ts`): how fast she gets thirsty, how often weeds, petals and wind `packages/engine/src/rose/rose.ts`): how fast she gets thirsty, how often weeds, petals and wind
come, and how many days of care each stage takes (full bloom after 25). Play it for a week, come, and how many days of care each stage takes (full bloom after 25). Play it for a week,
then say what feels wrong. then say what feels wrong.
7. **The apps:** a Mac with Xcode and an Apple developer account for iOS (G-T1); whether the
desktop window (480 × 800, portrait) should be wider; the release signing keys, kept outside
the repository (G-T3).
**How this machine works** (not in the code): **How this machine works** (not in the code):
@@ -153,6 +169,10 @@ The notification decision is made: in-app only on the web (G0.26).
download: ask first). The cause is unknown. download: ask first). The cause is unknown.
- **The Android tablet:** WAVE 10C on USB debugging; always `adb -s WAVE10CEEA036785` (an emulator - **The Android tablet:** WAVE 10C on USB debugging; always `adb -s WAVE10CEEA036785` (an emulator
attaches too, and other projects use the same tablet). Stop the app used when testing ends. attaches too, and other projects use the same tablet). Stop the app used when testing ends.
Its USB link drops now and then (`device offline`); `e2e/apps/check-garden.ts` waits and retries.
- **Building the apps:** Rust 1.99 (MSVC) with the four Android targets, JDK 17, the Android SDK at
`F:\Tools\Android\Sdk` (NDK 27.1), VS 2022 Build Tools, WebView2 and NSIS are all installed; a
cold desktop release build takes about 6 minutes, an Android debug build about 2 after that.
- **Commit identity:** `mnovak <giteatruenasadminacc.from729@passmail.net>`, set in - **Commit identity:** `mnovak <giteatruenasadminacc.from729@passmail.net>`, set in
this repository only. this repository only.