Phase 2: cut the APK over to the React app

webDir moves from www to dist, and npm run apk now builds with Vite
instead of copying the reference. The Phase 1 pipeline is still there as
apk:phase1, so the wrapper that has been installable throughout can be
rebuilt if the port turns out to have a problem on the device.

Verified without the phone: Vite builds, Capacitor copies dist, all three
plugins are still found, Gradle packages, and the APK now contains the
React bundle and the three self-hosted woff2 files with none of the old
Phase 1 assets left behind.

What cannot be checked from here is the part that matters most - a real
two-finger chord, haptics, the back button, and whether the drill boxes
already on the phone survive the switch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 10:52:43 +03:00
parent 470ebf41dc
commit 7ddaf3d949
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"appId": "dev.ncode.sp404layers",
"appName": "SP-404MK2 layers",
"webDir": "www",
"webDir": "dist",
"android": {
"backgroundColor": "#151719",
"allowMixedContent": false