mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 09:13:23 +00:00
NappletHostActivity runs in the isolated `:napplet` process, which early-returns from Amethyst.onCreate to stay key-free and so never initializes the compose-resources Android context. `Res.readBytes` then threw MissingResourceException, crashing the host 100% on launch (the napplet feature could never open). Read shell.html/shim.js straight from the APK assets (where compose-resources packages them) via the Activity context instead of the suspending Res accessor. NappletWebContract now exposes the relative paths + RESOURCE_ASSET_ROOT so the paths stay single-sourced. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>