This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 260
/
Makefile
57 lines (43 loc) · 1.34 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
.PHONY: setup
setup:
npm install
.PHONY: dependencies
dependencies:
flutter pub get
.PHONY: analyze
analyze:
flutter analyze
.PHONY: format
format:
flutter format lib/
.PHONY: format-analyze
format-analyze:
flutter format --dry-run lib/
flutter analyze
.PHONY: build-runner
build-runner:
flutter packages pub run build_runner build --delete-conflicting-outputs
.PHONY: run-dev
run-dev:
flutter run --flavor development --dart-define=FLAVOR=development --target lib/main.dart
.PHONY: run-prd
run-prd:
flutter run --release --flavor production --dart-define=FLAVOR=production --target lib/main.dart
.PHONY: build-android-dev
build-android-dev:
flutter build apk --flavor development --dart-define=FLAVOR=development --target lib/main.dart
.PHONY: build-android-prd
build-android-prd:
flutter build apk --release --flavor production --dart-define=FLAVOR=production --target lib/main.dart
.PHONY: build-ios-dev
build-ios-dev:
flutter build ios --no-codesign --flavor development --dart-define=FLAVOR=development --target lib/main.dart
.PHONY: build-ios-prd
build-ios-prd:
flutter build ios --release --no-codesign --flavor production --dart-define=FLAVOR=production --target lib/main.dart
.PHONY: unit-test
unit-test:
flutter test --coverage --coverage-path=./coverage/lcov.info
.PHONY: codecov
codecov:
./scripts/codecov.sh ${CODECOV_TOKEN}