generated from huskyjp/flutter-architecture-blueprints
-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
Makefile
64 lines (50 loc) · 1.51 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
.PHONY: setup
setup:
flutter channel beta
flutter upgrade
flutter pub get
npm install
gem update cocoapods
cd ios/ && pod install && cd ..
.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:
cd ios/ && pod install && cd ..
flutter build ios --no-codesign --flavor development --dart-define=FLAVOR=development --target lib/main.dart
.PHONY: build-ios-prd
build-ios-prd:
cd ios/ && pod install && cd ..
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}