12 KiB
Review — feature/tauri-platforms
Adversarial self-review (CLAUDE.md §5.3). Analysis: features/tauri-platforms.md.
Reviewed 2026-11-17 on Windows 10 Pro (19045), Node 22.23.4, Rust 1.99.0 (MSVC), JDK 17.0.20,
Android SDK with NDK 27.1, Tauri CLI 2.12.5, tauri 2.12.6, WebView2 157.0.4341.46. The Android device
is a WAVE 10C on Android 16 (API 36) with Android System WebView 140.0.7339.207, over USB. There is no
PR: the only remote is Gitea.
What the author asked, and what exists now
"I need also android apk version, desktop version, ios version and pwa version. Put that to claude.md based on the tauri2 framework."
| Version | State |
|---|---|
| PWA | Unchanged; the e2e and offline suites pass (counts below). |
| Windows desktop | Built and run. pnpm tauri:build → rosea-shell.exe and Rosea Domi_0.1.0_x64-setup.exe (NSIS, 1.31 MiB), 5 min 49 s from cold. The check passed: the garden opens, she is watered, the app is closed and opened again, she is still watered. |
| Android | Built, installed and run on the tablet. pnpm tauri:android → app-universal-debug.apk (arm64 only, debug, ~122 MB with debug symbols), verified with aapt2; installed with adb install -r; the check passed: opens, watered, am force-stop, opened again, still watered. Offline by construction: the app holds no INTERNET permission. |
| iOS | Not possible here. pnpm tauri:ios refuses on Windows with the reason (seen). What it needs is in the analysis, G-T1. |
| macOS, Linux desktop | Not built (G-T2). |
Downloads: the author approved (2026-11-17) the Tauri CLI from npm, crates from crates.io, Gradle artefacts from Google Maven and Maven Central, all expected to come from this machine's caches. pnpm reported 2 packages downloaded (the CLI and its Windows binary); cargo and Gradle built without visible fetches. Nothing was installed system-wide. On the tablet: only Rosea's debug APK (Playwright's Android support reached the WebView over adb and installed nothing).
Gates
Filled from the run on the branch head:
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
constant that is 'web' in its build, so the PWA behaves as before. Rebuilt by the e2e and offline
runs; not deployed (G0.13). The APK and the installer are on this machine only, not committed.
Bug drills
Each bug put back by script, the named test run, the file restored. One drill spot-checked to fail on the right assertion (the worker left on → has no service worker and no web manifest).
| Put back | Result |
|---|---|
Tauri's CSP drifts from csp.ts ('unsafe-inline' added) |
CAUGHT |
useHttpsScheme flipped to false (origin moves, rose left behind) |
CAUGHT |
| Identifier changed | CAUGHT |
| A WebView2 privacy flag dropped | CAUGHT |
| The Android build no longer runs the privacy patch | CAUGHT |
| A plugin crate added to the shell | CAUGHT |
| The service worker left on in the shell build | CAUGHT |
The <meta> CSP left in the shell build |
CAUGHT |
The shell build under /Rosea/ |
CAUGHT |
The patch forgets to remove INTERNET |
CAUGHT |
The patch forgets allowBackup |
CAUGHT |
| A rule file stops excluding the database from device transfer | CAUGHT |
| The APK check lets any app's receiver-guard permission through | CAUGHT |
| The APK check reads a neighbour's meta-data value | CAUGHT |
| Tauri's logo left as the launcher icon | CAUGHT by android.ts check (exit 1, then 0 after the copy); not a unit test |
Not drilled, and no test would catch it: App.svelte not counting the app as installed (D9).
Seen only through the check's report (persist() is asked; on iOS, the install hint, untestable here).
Findings
| # | Area | Finding | Resolution |
|---|---|---|---|
| 1 | Soul | Inside the apps, Keep her safe says This browser may clear her if the garden is not opened for a long time. A saved file keeps her for sure., offers Ask the browser to keep her (which always answers no: persist() is false in both webviews), and on Android Save her to a file does nothing (measured). A player is told she may be lost, in the wrong words, and the one remedy fails silently. That is a worry the game made, and a broken promise. |
Deferred, as a release blocker (G-T4): it needs app words in packages/ui copy and a working save, which is the first Tauri plugin and its own feature doc and Soul review. Today the APK and installer exist on this machine only, for the author's own play; CLAUDE.md §8 and the analysis say no app goes to a player before G-T4 closes. Offered as the next session. |
| 2 | Correctness | The first APK carried Tauri's logo: icons.ts skipped the copy because tauri android init had written its own icon later than ours. |
Fixed: the Android icons are copied into gen/android on every build, and android.ts check compares the bytes; the rebuilt APK's mipmap-mdpi icon hashes to ours. |
| 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. |
| 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 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); 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). |
| 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. |
| 11 | Scope | No Android dev command (tauri android dev): it would need INTERNET back and adb reverse to stay on 127.0.0.1. |
Deferred (D12); not needed to test what exists. |
| 12 | Design | The window is 480 × 800 on the desktop; the garden was designed for a phone. | Kept: portrait like the PWA's manifest. Whether the desktop app should be wider is the author's call after playing it. |
Correctness
- Second run:
android.ts applyis idempotent (test);icons.tscopies every time; a secondpnpm tauri:androidrebuilt in seconds and re-verified. - Clock and DST: nothing here reads time; the game's own handling is unchanged.
- Partial write, app closed mid-action: the app is closed with
kill(desktop) andam force-stop(Android) right after the care was committed (the check waits for the log); a force-stop during the write was not tried. IndexedDB's transactions are the same as in the PWA. - Two tabs: an app has one window; two instances of the desktop app share one WebView2 folder and
would talk through
BroadcastChannellike tabs. Not tried. - Origin is forever: identifier and
useHttpsSchemeare pinned by tests and drills.
Soul
Finding 1 is the one: a worry and a broken remedy, in the apps only. Nothing else in this change adds a word, a count, a badge or a reminder. The apps do not notify. The window has no title-bar status.
Privacy — every path a byte could leave
| Path | Android | Windows |
|---|---|---|
| The game's own requests | none (check: 0 outside the origin) | none (check: 0 outside the origin) |
| The webview's own traffic | impossible: no INTERNET (dumpsys, aapt2) |
switched off by flags; not measured (G-T6) |
| Cloud backup / device transfer | off (allowBackup=false, every domain excluded; dumpsys flags) |
n/a (WebView2 data is not roamed) |
| Plugins, IPC | none; no capabilities | none; no capabilities |
| Installer | n/a | may fetch the WebView2 bootstrapper (finding 10) |
| 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
Nothing new: no field reaches anyone, no network.
Offline
Android is offline by construction and was tested so. The desktop check ran with the machine online (WebView2's own flags replaced, finding 8); the game made no request outside its origin.
Test honesty
- 14 of 14 drills caught; one spot-checked for the right assertion.
- The device checks are scripts run by hand, not in
pnpm test: they need the built app and the tablet. Their results above are from this machine on 2026-11-17. - The APK fixtures are real
aapt2output of the APK built here, saved with the tests.
What was NOT verified
- iOS, macOS, Linux (G-T1, G-T2). WKWebView's storage location and eviction.
- WebView2's network silence for Rosea (G-T6).
- Bringing a rose back from a file in either app (G-T5: the Android picker opens; nothing was picked).
- A force-stop during a write. Two desktop instances at once.
- The NSIS installer itself was built, not run: the check ran the
.exefromtarget/release. - A release (signed) APK; an AAB; any store (G-T3).
- Android versions other than 16, phones (only the tablet), other WebView versions.