Build & release
Every script that runs or builds the User App / Coach App, which flavor + backend it points at, and how a build gets to Play Console. All from daily-meet-app.
Every flutter run / flutter build needs --flavor staging|production plus a matching --dart-define=APP_FLAVOR=staging|production. All scripts below already pass both — only a bare manual flutter run needs them added by hand. In script names, host = the Coach App.
Run scripts (device/simulator)
| Script | Flavor | Backend |
|---|---|---|
./scripts/run_user_local.sh | staging | local (10.0.2.2:8000 emulator / 127.0.0.1:8000 other) |
./scripts/run_host_local.sh | staging | local |
./scripts/run_user_staging.sh | staging | api-staging.dailymeet.in |
./scripts/run_host_staging.sh | staging | api-staging.dailymeet.in |
./scripts/run_user_release.sh | production | api.dailymeet.in |
./scripts/run_host_release.sh | production | api.dailymeet.in |
Physical device on local backend needs an explicit LAN URL, since the phone can't reach your Mac via 10.0.2.2/127.0.0.1:
flutter run --flavor staging --dart-define=APP_FLAVOR=staging \
--dart-define=DAILY_MEET_API_BASE_URL=http://YOUR_LAN_HOST:8000
Android builds (APK and Play App Bundle)
| Command | Output |
|---|---|
./scripts/build_user_android_debug.sh | dist/android/user/daily-meet-user-debug.apk |
./scripts/build_host_android_debug.sh | dist/android/host/daily-meet-host-debug.apk |
./scripts/build_user_android_staging.sh | dist/android/user/daily-meet-user-staging.apk |
./scripts/build_host_android_staging.sh | dist/android/host/daily-meet-host-staging.apk |
./scripts/build_user_android_production.sh | dist/android/user/daily-meet-user-production.apk |
./scripts/build_host_android_production.sh | dist/android/host/daily-meet-host-production.apk |
All of these wrap scripts/_build_android_apk.sh <user|host> <debug|staging|production> [--clean] [--aab] [--api-base-url URL]:
--aabbuilds a Play App Bundle instead of an APK (staging/production only). Build every Play upload through these scripts.--cleanruns a clean build;--api-base-urlis for debug builds only (e.g. your Mac's LAN IP).- Release builds are signed with the real release keystore from the gitignored
key.properties— see App identifiers → Signing.
Stale-code trap. In Sept 2026 Gradle packaged an old libapp.so (Dart code from days earlier) into release builds from its cached merged_jni_libs/merged_native_libs/stripped_native_libs intermediates. The build script now clears those and fails if the packaged Dart code isn't from the current run. If you ever build a release by hand, run flutter clean first.
Uploading to Play Console
- Merge to
main, then fast-forwarddaily-meet-app'sproductionbranch:git push dailymeet dailymeet/main:production. Cut store builds fromproduction. - Pick a versionCode above the last upload (next: user ≥ 9, coach ≥ 7) — either bump
version:inpubspec.yaml/apps/host_app/pubspec.yaml, or pass Flutter's--build-number. - Build the production-flavor AAB for each app (above, with
--aab). - In Play Console → the production listing → Closed testing - Alpha → Create release, drag the AAB in from Finder, add release notes, save, then Publishing overview → "Send changes for review". Check the tab matches the file — Play rejects the other app's AAB as "signed with the wrong key".
- Google reviews each release (often same day). Nothing is automatic yet — a GitHub Actions pipeline (build, sign from secrets, upload via the Play Developer API on push to
production) is planned but not started.
AABs are large (~250 MB: all ABIs, debug symbols, the on-device speech model); the per-device install Play reports is ~105 MB. Delete old AABs from dist/ once uploaded.
iOS
flutter build ipa --flavor production --dart-define=APP_FLAVOR=production archives, but App Store export is blocked on signing — see App identifiers → App Store.
VS Code launch configs
.vscode/launch.json has Local / Staging / Production entries for both apps, each already wired with the right flavor + dart-defines:
- Daily Meet User – Local / Staging / Production
- Daily Meet Celeb (Coach) – Local / Staging / Production
Tests, analysis & QA
flutter analyze
flutter test
(cd apps/host_app && flutter analyze && flutter test)
(cd packages/daily_meet_core && flutter test)
Every feature also gets a QA pass: scenario plan, automated scenario tests, a run report and fixes, kept under docs/qa/<feature>/ (see docs/qa/README.md).
Marketing website
website/public/ is a static page served by Caddy (website/Dockerfile). Pushing daily-meet-app main redeploys www.dailymeet.in — no build step. See docs/WEBSITE.md.
Backend/Admin Panel release
Different process entirely — see Backend deployment for the Railway promotion workflow (main → merge into production branch, no manual build step).