Add Capacitor mobile builds and Android APK

This commit is contained in:
Ninosaurier committed 2026-11-15 15:15:36 +01:00
1 parent 4f221ea122
commit 8ef90b5898
86 files changed
+2874 -7

No files matched your search

+8 -2
View File
@@ -15,6 +15,8 @@ Main tools:
- **React** builds the interface and manages state.
- **TypeScript** checks types before the app is built.
- **Ionic React** provides page and control components.
- **Capacitor** wraps the web app in native Android and iOS projects.
- **Capacitor** wraps the web app in native Android and iOS projects.
- **Ionicons** provides the control icons.
- **Vite** runs the local development server and builds the static site.
- **Vitest** runs the tests.
@@ -283,9 +285,13 @@ npm test
The scripts are defined in `package.json`. `npm run build` first runs TypeScript with no output, then Vite writes the app's static production site to `dist/`. The React plugin and Vitest environment are set in `vite.config.ts`. TypeScript strict options are in `tsconfig.json`; ESLint rules are in `eslint.config.js`.
`capacitor.config.ts` sets the native app ID and points Capacitor to `dist/`. The Android debug build is copied into `downloads/` by `npm run android:debug`. iOS project sync is available on all platforms, but creating a signed IPA requires macOS and Xcode.
`capacitor.config.ts` points Capacitor to the `dist/` web build and defines the native app ID. `npm run build:mobile` uses relative asset paths so the native WebView can load local files.
The documentation site uses VitePress. Run `npm run docs:dev` to work on it locally, `npm run docs:build` to create its static files in `docs/.vitepress/dist/`, and `npm run docs:preview` to view that build. The pages are Markdown files under `docs/`; navigation and local search are set in `docs/.vitepress/config.mts`.
The project includes a web manifest and home-screen icons in `public/`, but it does not include a service worker, offline caching, persistence, a native mobile wrapper, or a server deployment configuration.
The project includes a web manifest and home-screen icons in `public/`, plus Capacitor wrappers in `android/` and `ios/`. It does not include a service worker, offline caching, persistence, or a server deployment configuration. Native build steps are in [Native Mobile Builds](native-builds.md).
## 10. Main implementation limits
@@ -295,4 +301,4 @@ The project includes a web manifest and home-screen icons in `public/`, but it d
- Playback timing uses a browser interval and may drift under load.
- Points are rounded to one of four playback subdivisions per main step when they play.
- The app makes audio with browser-generated oscillators and noise. It does not load user audio files.
- The repository builds a static web app; native app packaging is not configured here.
- iOS IPA creation requires macOS, Xcode, and signing configured outside this Linux build environment.