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:
@@ -1,7 +1,7 @@
|
|||||||
name: krowwithus_client
|
name: krowwithus_client
|
||||||
description: "Krow Client Application"
|
description: "Krow Client Application"
|
||||||
publish_to: "none"
|
publish_to: "none"
|
||||||
version: 0.0.1-M3+3
|
version: 0.0.1-M3+4
|
||||||
resolution: workspace
|
resolution: workspace
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
# Basic Usage
|
# Basic Usage
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
ExampleConnector.instance.createTaskComment(createTaskCommentVariables).execute();
|
ExampleConnector.instance.listConversations(listConversationsVariables).execute();
|
||||||
ExampleConnector.instance.updateTaskComment(updateTaskCommentVariables).execute();
|
ExampleConnector.instance.getConversationById(getConversationByIdVariables).execute();
|
||||||
ExampleConnector.instance.deleteTaskComment(deleteTaskCommentVariables).execute();
|
ExampleConnector.instance.listConversationsByType(listConversationsByTypeVariables).execute();
|
||||||
ExampleConnector.instance.createTaxForm(createTaxFormVariables).execute();
|
ExampleConnector.instance.listConversationsByStatus(listConversationsByStatusVariables).execute();
|
||||||
ExampleConnector.instance.updateTaxForm(updateTaxFormVariables).execute();
|
ExampleConnector.instance.filterConversations(filterConversationsVariables).execute();
|
||||||
ExampleConnector.instance.deleteTaxForm(deleteTaxFormVariables).execute();
|
ExampleConnector.instance.createTeamHub(createTeamHubVariables).execute();
|
||||||
ExampleConnector.instance.createUserConversation(createUserConversationVariables).execute();
|
ExampleConnector.instance.updateTeamHub(updateTeamHubVariables).execute();
|
||||||
ExampleConnector.instance.updateUserConversation(updateUserConversationVariables).execute();
|
ExampleConnector.instance.deleteTeamHub(deleteTeamHubVariables).execute();
|
||||||
ExampleConnector.instance.markConversationAsRead(markConversationAsReadVariables).execute();
|
ExampleConnector.instance.createWorkforce(createWorkforceVariables).execute();
|
||||||
ExampleConnector.instance.incrementUnreadForUser(incrementUnreadForUserVariables).execute();
|
ExampleConnector.instance.updateWorkforce(updateWorkforceVariables).execute();
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -23,8 +23,8 @@ Optional fields can be discovered based on classes that have `Optional` object t
|
|||||||
This is an example of a mutation with an optional field:
|
This is an example of a mutation with an optional field:
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
await ExampleConnector.instance.listStaffAvailabilitiesByDay({ ... })
|
await ExampleConnector.instance.markConversationAsRead({ ... })
|
||||||
.offset(...)
|
.lastReadAt(...)
|
||||||
.execute();
|
.execute();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@ MOBILE_DIR := apps/mobile
|
|||||||
DEVICE ?= android
|
DEVICE ?= android
|
||||||
|
|
||||||
# --- General ---
|
# --- General ---
|
||||||
mobile-install: install-melos
|
mobile-install: install-melos dataconnect-generate-sdk
|
||||||
@echo "--> Bootstrapping mobile workspace (Melos)..."
|
@echo "--> Bootstrapping mobile workspace (Melos)..."
|
||||||
@cd $(MOBILE_DIR) && melos bootstrap
|
@cd $(MOBILE_DIR) && melos bootstrap
|
||||||
@echo "--> Generating localization files..."
|
@echo "--> Generating localization files..."
|
||||||
@@ -20,11 +20,11 @@ mobile-info:
|
|||||||
@cd $(MOBILE_DIR) && melos run info
|
@cd $(MOBILE_DIR) && melos run info
|
||||||
|
|
||||||
# --- Client App ---
|
# --- Client App ---
|
||||||
mobile-client-dev-android:
|
mobile-client-dev-android: dataconnect-generate-sdk
|
||||||
@echo "--> Running client app on Android (device: $(DEVICE))..."
|
@echo "--> Running client app on Android (device: $(DEVICE))..."
|
||||||
@cd $(MOBILE_DIR) && melos run start:client -- -d $(DEVICE) --dart-define-from-file=../../config.dev.json
|
@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 \
|
@if [ -z "$(PLATFORM)" ]; then \
|
||||||
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
|
echo "ERROR: PLATFORM is required (e.g. make mobile-client-build PLATFORM=apk)"; exit 1; \
|
||||||
fi
|
fi
|
||||||
@@ -36,11 +36,11 @@ mobile-client-build:
|
|||||||
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE) --dart-define-from-file=../../config.dev.json"
|
melos exec --scope="krowwithus_client" -- "flutter build $(PLATFORM) --$(MODE) --dart-define-from-file=../../config.dev.json"
|
||||||
|
|
||||||
# --- Staff App ---
|
# --- Staff App ---
|
||||||
mobile-staff-dev-android:
|
mobile-staff-dev-android: dataconnect-generate-sdk
|
||||||
@echo "--> Running staff app on Android (device: $(DEVICE))..."
|
@echo "--> Running staff app on Android (device: $(DEVICE))..."
|
||||||
@cd $(MOBILE_DIR) && melos run start:staff -- -d $(DEVICE)
|
@cd $(MOBILE_DIR) && melos run start:staff -- -d $(DEVICE)
|
||||||
|
|
||||||
mobile-staff-build:
|
mobile-staff-build: dataconnect-generate-sdk
|
||||||
@if [ -z "$(PLATFORM)" ]; then \
|
@if [ -z "$(PLATFORM)" ]; then \
|
||||||
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
|
echo "ERROR: PLATFORM is required (e.g. make mobile-staff-build PLATFORM=apk)"; exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user