feat: update launch configurations and build scripts for staging and production environments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user