feat: Implement Flutter flavors for dev, stage, and prod environments with corresponding configurations and build scripts.

This commit is contained in:
Achintha Isuru
2025-12-03 01:41:15 -05:00
parent 02470e196f
commit 323968c79c
8 changed files with 223 additions and 122 deletions

View File

@@ -9,3 +9,39 @@ workspace:
dev_dependencies:
melos: ^7.3.0
melos:
command:
bootstrap:
usePubspecOverrides: true
scripts:
run:staff:dev:
exec: flutter run --flavor dev -t lib/main_dev.dart
packageFilters:
scope: krow_staff
description: Run krow_staff app in dev flavor
run:staff:stage:
exec: flutter run --flavor stage -t lib/main_stage.dart
packageFilters:
scope: krow_staff
description: Run krow_staff app in stage flavor
run:staff:prod:
exec: flutter run --flavor prod -t lib/main_prod.dart
packageFilters:
scope: krow_staff
description: Run krow_staff app in prod flavor
build:staff:dev:
exec: flutter build apk --flavor dev -t lib/main_dev.dart
packageFilters:
scope: krow_staff
description: Build krow_staff apk in dev flavor
build:staff:stage:
exec: flutter build apk --flavor stage -t lib/main_stage.dart
packageFilters:
scope: krow_staff
description: Build krow_staff apk in stage flavor
build:staff:prod:
exec: flutter build apk --flavor prod -t lib/main_prod.dart
packageFilters:
scope: krow_staff
description: Build krow_staff apk in prod flavor