[docs] TauriPlatforms: Review, measurements on the tablet and Windows, lessons, gaps
This commit is contained in:
@@ -64,8 +64,9 @@ flowchart LR
|
||||
| D11 | **Per-platform bundle targets** in `tauri.{windows,macos,linux}.conf.json`: NSIS (current user) on Windows; `.app` and `.dmg` on macOS; `.deb` and AppImage on Linux. | One config would try to make targets the machine cannot (MSI needs WiX, a download). |
|
||||
| D12 | **Commands**: `pnpm tauri:dev`, `tauri:build`, `tauri:android` (a debug APK for arm64, then `verify`), `tauri:ios` (refuses off macOS with the reason). No Android dev command yet. | An Android dev build needs `INTERNET` to reach the dev server and `adb reverse` to keep it on 127.0.0.1 (CLAUDE.md §5.7); not needed to test what exists. |
|
||||
|
||||
What did **not** change: every package; the PWA's build, base path, worker, manifest and `<meta>`
|
||||
policy (the PWA's `dist/` is byte-for-byte the same apart from the build hash — checked in the review).
|
||||
What did **not** change: every package; the PWA's base path, worker, manifest and `<meta>` policy,
|
||||
held by the existing e2e and offline suites. (The PWA's bundle is not byte-identical: `__ROSEA_SHELL__`
|
||||
is folded to `'web'` there.)
|
||||
|
||||
## 3. Risk analysis
|
||||
|
||||
@@ -94,11 +95,11 @@ did not ask to be* (CLAUDE.md §5.1).
|
||||
| G-T1 | **iOS** cannot be built on Windows. | Needs macOS with Xcode (and its command-line tools, CocoaPods not required by Tauri 2), the Rust targets `aarch64-apple-ios` and `aarch64-apple-ios-sim`, and an **Apple developer account**: a free Apple ID can sign for one's own device for 7 days; TestFlight and the App Store need the paid programme. Then `pnpm tauri:ios`. Unknown until measured there: where WKWebView keeps IndexedDB, whether iOS purges it for an unused app, and whether `<a download>` saves her file. **Open.** |
|
||||
| G-T2 | **macOS and Linux desktop builds** are not built. | Each on its own system: `pnpm tauri:build` (`.app`/`.dmg`; `.deb`/AppImage). macOS outside the App Store also needs signing and notarisation with a paid account, or Gatekeeper warns. **Open.** |
|
||||
| G-T3 | **Release signing** for Android (a keystore) and Windows (a code-signing certificate). | Debug builds only today. The keystore and its passwords never enter the repository (CLAUDE.md §5.2). Phase 6. **Open.** |
|
||||
| G-T4 | **Saving her to a file inside an app.** The game saves through `<a download>` on a blob URL. | Android WebView and WKWebView do not save blob downloads by default. Measured on the tablet: see the review. If it does nothing, the design is a small Rust command behind the dialog plugin (`tauri-plugin-dialog` save, write the file), the first plugin, reviewed for network access; or the Android share sheet. **Open** until measured and built. |
|
||||
| G-T5 | **Bringing her back from a file** (`<input type="file">`) inside the apps. | Android WebView needs the app to answer the file chooser; Tauri's Android activity does. Measured on the tablet: see the review. |
|
||||
| G-T4 | **Keep her safe inside the apps — a release blocker.** The game saves through `<a download>` on a blob URL, and its words speak of *this browser*. | **Measured 2026-11-17.** Windows: the save starts a download (`rose-2026-11-17.json`). Android (WAVE 10C, WebView 140): **nothing happens**. And in both apps `persist()` answers `false`, so *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.* and offers *Ask the browser to keep her*: wrong words in an app, a worry that is not true of an app's own storage, and on Android a remedy that does nothing. Design for its own feature: app words for *Keep her safe* in `packages/ui/src/copy/` chosen by the shell constant; saving through `tauri-plugin-dialog` + a write (the first plugin, reviewed for network access) or the Android share sheet. **No APK or installer goes to any player before this is closed.** |
|
||||
| G-T5 | **Bringing her back from a file** (`<input type="file">`) inside the apps. | **Measured 2026-11-17 on Android:** the system file picker opens (`com.android.documentsui` `PickActivity`). Reading a chosen file back was not tried (no saved rose on the tablet, see G-T4). Windows: not tried. **Open** until a round trip is seen. |
|
||||
| G-T6 | **WebView2's traffic not measured for Rosea.** | Amicitia's `watch-desktop-network.ps1` approach: run the built exe, list its connections. Before the first desktop release. **Open.** |
|
||||
| G-T7 | **No CI** builds the apps (G0.22). | Builds by hand on this machine; never committed. |
|
||||
| G-T8 | **Storage eviction in WebView2 and Android WebView** is predicted, not measured. | `persist()` is asked after the first care (D9). Measure what `persisted()` answers in each webview (review). |
|
||||
| G-T8 | **Storage eviction in WebView2 and Android WebView.** | **Measured 2026-11-17:** `persist()` and `persisted()` answer `false` in both (Android: quota 70 GB, 3 KB used). An app's webview data lives in the app's own storage and goes with an uninstall or *Clear storage*; whether Chromium's pressure eviction can reach it there was not measured. G-T4 is the answer either way. |
|
||||
| G-T9 | **The icon is the PWA's placeholder.** | G0.21; the art pipeline. Android adaptive icons need a foreground layer then. |
|
||||
|
||||
## 5. Verification matrix
|
||||
|
||||
Reference in New Issue
Block a user