Skip to main content

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

  1. Ensure web build succeeds: npm run build.
  2. Production against routineassist.com: npm run android:prod.
  3. Script runs npm run build + npx cap sync android.
  4. Open android/ in Android Studio for signing/APK.
  5. Custom server URL: node scripts/cap-sync-android.mjs https://your-server.nl.
  6. Test API calls — no bare fetch('/api') in src/ (use apiFetch).
  7. 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.

See also