-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
70 lines (53 loc) · 1.89 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: get
get:
@flutter pub get
.PHONY: build
build:
@flutter pub run build_runner build --delete-conflicting-outputs
.PHONY: watch
watch:
@flutter pub run build_runner watch --delete-conflicting-outputs
.PHONY: apk-dev
apk-dev:
@flutter build apk --debug --flavor development --target lib/main_development.dart
.PHONY: apk-stg
apk-stg:
@flutter build apk --profile --flavor staging --target lib/main_staging.dart
.PHONY: apk-prod
apk-prod:
@flutter build apk --release --flavor production --target lib/main_production.dart
.PHONY: ipa-dev
ipa-dev:
@flutter build ipa --debug --flavor development --target lib/main_development.dart
.PHONY: ipa-stg
ipa-stg:
@flutter build ipa --profile --flavor staging --target lib/main_staging.dart
.PHONY: ipa-prod
ipa-prod:
@flutter build ipa --release --flavor production --target lib/main_production.dart
.PHONY: test
test:
@flutter test --coverage --test-randomize-ordering-seed random
.PHONY: fix
fix:
@dart fix --apply
.PHONY: check-fix
check-fix:
@dart fix --dry-run
.PHONY: firebase-dev
firebase-dev:
@flutterfire config -y --account ${FIREBASE_EMAIL} --project=${FIREBASE_PROJECT_ID_DEV} --out=lib/firebase_options_dev.dart --ios-bundle-id=${PROJECT_PACKAGE}.dev --android-package-name=${PROJECT_PACKAGE}.dev
.PHONY: firebase-stg
firebase-stg:
@flutterfire config -y --account ${FIREBASE_EMAIL} --project=${FIREBASE_PROJECT_ID_STG} --out=lib/firebase_options_stg.dart --ios-bundle-id=${PROJECT_PACKAGE}.stg --android-package-name=${PROJECT_PACKAGE}.stg
.PHONY: firebase-prod
firebase-prod:
@flutterfire config -y --account ${FIREBASE_EMAIL} --project=${FIREBASE_PROJECT_ID_PROD} --out=lib/firebase_options.dart --ios-bundle-id=${PROJECT_PACKAGE} --android-package-name=${PROJECT_PACKAGE}
.PHONY: analyze
analyze:
@flutter analyze lib test
.PHONY: format
format:
@flutter format --set-exit-if-changed lib test
.PHONY: prepare
prepare: fix format analyze