0f5db0ee91
Add @capacitor/{core,android,app,cli,assets} to ui/, a capacitor.config.ts (appId ru.eruditgame.app, appName Эрудит, webDir dist — bundle model, no server.url), and the generated ui/android/ Gradle project (tracked; build outputs and the machine-specific local.properties gitignored, keystore patterns un-commented so signing material can never be committed). Wire the Android hardware Back button in ui/src/lib/native.ts behind a dynamic @capacitor/app import (web/mock bundles never load it), called from App.svelte onMount and reusing routeDepth for the navigation-root check. Whitelist sharp in pnpm-workspace.yaml for @capacitor/assets icon generation.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
13 lines
675 B
YAML
13 lines
675 B
YAML
# pnpm 11 records build-script approval here. esbuild's postinstall materialises
|
|
# its CLI shim; the platform binary itself ships as an optional dependency.
|
|
# core-js-bundle ships a prebuilt minified.js (we only read that file at build time,
|
|
# via vite.config emitPolyfills) and its install script is just a funding banner, so
|
|
# it is denied — nothing to build.
|
|
allowBuilds:
|
|
core-js-bundle: false
|
|
esbuild: true
|
|
# sharp (via @capacitor/assets) rasterises the launcher icon/splash for the
|
|
# `android:assets` script. It installs a prebuilt binary via prebuild-install —
|
|
# no native toolchain needed — so allow its install script to materialise it.
|
|
sharp: true
|