Android build
Goal
Build APK that uses routineassist.com as server.
For whom
Developers before APK admin upload.
Where in the app
Scripts: npm run android:prod, npm run cap:sync.
Prerequisites
Android SDK, Java, local install works.
Step by step
- Ensure web build succeeds:
npm run build. - Production against routineassist.com:
npm run android:prod. - Script runs
npm run build+npx cap sync android. - Open
android/in Android Studio for signing/APK. - Custom server URL:
node scripts/cap-sync-android.mjs https://your-server.nl. - Test API calls — no bare
fetch('/api')insrc/(useapiFetch). - Upload APK via /admin/app-updates after test.
Options & settings
Never change only android/ for UI — always src/ + cap sync.
Tips & troubleshooting
Native changes (permissions): AndroidManifest.xml + re-sync.