Phase 22: Capacitor Init — iOS Project Setup
Goal: Add Capacitor to westside-app. iOS project generated, web deployment unchanged.
Owner: Dev agent
Repo:
forgejo_admin/westside-appDepends on: Phase 29: SvelteKit Convention (plan-pal-e-platform)
Scope
- Install:
@capacitor/core,@capacitor/cli,@capacitor/ios npx cap init— app ID:com.westsidekingsandqueens.appnpx cap add ioscapacitor.config.ts: webDir='build', server URL handling- Platform detection in
src/lib/keycloak.js— follow mcd-tracker pattern (~/mcd-tracker-app/src/lib/keycloak.jslines 100-105) - Keycloak client
westside-spaalready hascapacitor://localhost/*redirect URIs - Verify:
npm run build && npx cap sync iosproduces valid Xcode project
Independent of Phase 21 (Enterprise Auth) — can run in parallel.
Acceptance Criteria
- westside-app has
capacitor.config.tsandios/directory npm run build && npx cap sync iossucceeds- Xcode project opens and builds without errors
- Web deployment continues unchanged
Related
- Plan: Westside Kings & Queens
- Phase 29: SvelteKit Convention — platform prerequisite
- Project: Capacitor Mobile