Upgrade the thin Android host from S1 to S2 across four areas:
- Present real pixel frames via NDK EGL/GLES3 (`glClear` + `eglSwapBuffers`)
with automatic `EGLSurface` teardown and `CpuFallback` downgrade when EGL
is unavailable, retaining `pending_frame` on failure until a frame presents.
Full `wgpu` Vulkan-to-GLES3 rendering lands in `S3-Android`.
- Open in-place `0.27.5` SQLite WAL databases through `affine-store` with
`busy_timeout = 5000ms` and `onStop()` `PASSIVE` checkpoints. Gate local
workspaces by the ordered `affine-local-workspace` allowlist with zero disk
scanning, evict unlisted local handles on shrink, and allow cloud workspaces
and userspaces directly.
- Implement a file-locked atomic Jetpack Preferences DataStore protobuf codec
with zero silent corruption wipes, single-lock `getOrCreateInstallationId`,
pure-Kotlin RFC 4648 Base64 for API 24+, `v1:` AES-GCM envelopes, process-wide
single-flight `refreshSession` with idempotent `x-affine-refresh-attempt`
reuse and disk-write retry caching, a default `HttpUrlConnectionRefreshTransport`
sending `refreshToken` only in the JSON body, `INTERNET` manifest permission,
and exact `0.27.5` three-cookie plus `affine.preferences_pb` auth cleanup.
- Wire `AndroidBootstrapCoordinator` in `MainActivity.onCreate` with unified
`WebViewStorageSentinel` validation, active `indexedDB` interception,
lossless raw preservation of malformed workspace lists, and explicit partial
mount failure reporting with allowlist-synced retry and write-back gating.
Add thin Web, iOS, and Android mobile hosts, harden the blocksuite-preview
Mermaid renderer and Wasm exports, and add S1 release performance probes
with CI artifact and native host linking gates.
- Preview: use FontPoolWidthMeasurer with variable-font HVAR weight
instantiation, integer pixel ceil widths, front-matter theme injection,
high-contrast Light and Dark palettes, premultiplied RGBA PNG compositing,
and Wasm theme parameters.
- Probes and CI: add s1_sqlite_probe and s1_probes release tests, record
measured latency and peak RSS in BENCHMARK.md, add timeout-minutes on all
np-mobile jobs, upload s1-probes-artifacts, and link Android NDK .so,
kotlinc Activity, and iOS Simulator swiftc executable in CI.
- Web host: use an offscreen canvas GPU probe, add OAuth redirect-loop and
runtime GPU loss guards, restrict embed URLs and sandbox tokens, match
/api/auth/captcha Turnstile headers, and launch four independent ES module
Blob workers pinned to site root.
- iOS host: add affine-ios-host staticlib crate implementing all C-ABI
functions with surrogate-pair safe UTF-16 editing, weak DisplayLinkProxy,
absolute ime_bottom contract, and in-memory LegacyCapacitorSchemeHandler.
- Android host: implement hand-written JNI bridge with absolute ime_bottom
logical-dp conversion, predictive and legacy back gesture handling, and a
pure Android platform SDK MainActivity and LegacyLocalStorageProbe.