feat: update mobile makefile to include SDK generation for client and staff apps

- Added `dataconnect-generate-sdk` as a prerequisite for mobile installation, client, and staff build commands.
- Ensured SDK generation is performed before running or building mobile applications to streamline the development process.
This commit is contained in:
Achintha Isuru
2026-02-02 10:07:13 -05:00
parent 44d9243171
commit 075c3150d0
5 changed files with 20077 additions and 20077 deletions

View File

@@ -9,7 +9,7 @@ MOBILE_DIR := apps/mobile
DEVICE ?= android
# --- General ---
mobile-install: install-melos
mobile-install: install-melos dataconnect-generate-sdk
@echo "--> Bootstrapping mobile workspace (Melos)..."
@cd $(MOBILE_DIR) && melos bootstrap
@echo "--> Generating localization files..."
@@ -20,11 +20,11 @@ mobile-info:
@cd $(MOBILE_DIR) && melos run info
# --- Client App ---
mobile-client-dev-android:
mobile-client-dev-android: dataconnect-generate-sdk
@echo "--> Running client app on Android (device: $(DEVICE))..."
@cd $(MOBILE_DIR) && melos run start:client -- -d $(DEVICE) --dart-define-from-file=../../config.dev.json
mobile-client-build:
mobile-client-build: dataconnect-generate-sdk
@if [ -z "$(PLATFORM)" ]; then \
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
fi
@@ -36,11 +36,11 @@ mobile-client-build:
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE) --dart-define-from-file=../../config.dev.json"
# --- Staff App ---
mobile-staff-dev-android:
mobile-staff-dev-android: dataconnect-generate-sdk
@echo "--> Running staff app on Android (device: $(DEVICE))..."
@cd $(MOBILE_DIR) && melos run start:staff -- -d $(DEVICE)
mobile-staff-build:
mobile-staff-build: dataconnect-generate-sdk
@if [ -z "$(PLATFORM)" ]; then \
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
fi