feat: update launch configurations and build scripts for staging and production environments

This commit is contained in:
Achintha Isuru
2026-03-09 17:27:56 -04:00
parent 093cc4e0a4
commit fe98462431
4 changed files with 120 additions and 35 deletions

View File

@@ -53,9 +53,9 @@ mobile-client-build: dataconnect-generate-sdk
$(eval MODE ?= release)
@echo "--> Building client app for $(PLATFORM) in $(MODE) mode (env: $(ENV))..."
@cd $(MOBILE_DIR) && \
melos exec --scope="core_localization" -- "dart run slang" && \
melos exec --scope="core_localization" -- "dart run build_runner build --delete-conflicting-outputs" && \
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE) --flavor $(ENV) --dart-define-from-file=../../config.$(ENV).json"
melos run gen:l10n && \
melos run gen:build && \
melos run build:client -- $(PLATFORM) --$(MODE) --flavor $(ENV) --dart-define-from-file=../../config.$(ENV).json
# --- Staff App ---
mobile-staff-dev-android: dataconnect-generate-sdk
@@ -69,9 +69,9 @@ mobile-staff-build: dataconnect-generate-sdk
$(eval MODE ?= release)
@echo "--> Building staff app for $(PLATFORM) in $(MODE) mode (env: $(ENV))..."
@cd $(MOBILE_DIR) && \
melos exec --scope="core_localization" -- "dart run slang" && \
melos exec --scope="core_localization" -- "dart run build_runner build --delete-conflicting-outputs" && \
melos exec --scope="krowwithus_staff" -- "flutter build $(PLATFORM) --$(MODE) --flavor $(ENV) --dart-define-from-file=../../config.$(ENV).json"
melos run gen:l10n && \
melos run gen:build && \
melos run build:staff -- $(PLATFORM) --$(MODE) --flavor $(ENV) --dart-define-from-file=../../config.$(ENV).json
# --- E2E (Maestro) ---
# Set env before running: TEST_CLIENT_EMAIL, TEST_CLIENT_PASSWORD, TEST_CLIENT_COMPANY, TEST_STAFF_PHONE, TEST_STAFF_OTP, TEST_STAFF_SIGNUP_PHONE