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
|
||||
description: "Krow Client Application"
|
||||
publish_to: "none"
|
||||
version: 0.0.1-M3+3
|
||||
version: 0.0.1-M3+4
|
||||
resolution: workspace
|
||||
|
||||
environment:
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
# Basic Usage
|
||||
|
||||
```dart
|
||||
ExampleConnector.instance.createTaskComment(createTaskCommentVariables).execute();
|
||||
ExampleConnector.instance.updateTaskComment(updateTaskCommentVariables).execute();
|
||||
ExampleConnector.instance.deleteTaskComment(deleteTaskCommentVariables).execute();
|
||||
ExampleConnector.instance.createTaxForm(createTaxFormVariables).execute();
|
||||
ExampleConnector.instance.updateTaxForm(updateTaxFormVariables).execute();
|
||||
ExampleConnector.instance.deleteTaxForm(deleteTaxFormVariables).execute();
|
||||
ExampleConnector.instance.createUserConversation(createUserConversationVariables).execute();
|
||||
ExampleConnector.instance.updateUserConversation(updateUserConversationVariables).execute();
|
||||
ExampleConnector.instance.markConversationAsRead(markConversationAsReadVariables).execute();
|
||||
ExampleConnector.instance.incrementUnreadForUser(incrementUnreadForUserVariables).execute();
|
||||
ExampleConnector.instance.listConversations(listConversationsVariables).execute();
|
||||
ExampleConnector.instance.getConversationById(getConversationByIdVariables).execute();
|
||||
ExampleConnector.instance.listConversationsByType(listConversationsByTypeVariables).execute();
|
||||
ExampleConnector.instance.listConversationsByStatus(listConversationsByStatusVariables).execute();
|
||||
ExampleConnector.instance.filterConversations(filterConversationsVariables).execute();
|
||||
ExampleConnector.instance.createTeamHub(createTeamHubVariables).execute();
|
||||
ExampleConnector.instance.updateTeamHub(updateTeamHubVariables).execute();
|
||||
ExampleConnector.instance.deleteTeamHub(deleteTeamHubVariables).execute();
|
||||
ExampleConnector.instance.createWorkforce(createWorkforceVariables).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:
|
||||
|
||||
```dart
|
||||
await ExampleConnector.instance.listStaffAvailabilitiesByDay({ ... })
|
||||
.offset(...)
|
||||
await ExampleConnector.instance.markConversationAsRead({ ... })
|
||||
.lastReadAt(...)
|
||||
.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
|
||||
|
||||
# --- 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
|
||||
|
||||
Reference in New Issue
Block a user