-
Notifications
You must be signed in to change notification settings - Fork 115
/
makefile
62 lines (43 loc) · 1.52 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
xcode:
open ios/Runner.xcworkspace
install:
fvm flutter pub get
ci:
make format && make analyze && make test_coverage
format:
fvm dart format --set-exit-if-changed -l 120 lib
analyze:
fvm flutter analyze lib
test_coverage:
fvm flutter test --no-pub --coverage --test-randomize-ordering-seed random
clean_coverage:
lcov --remove coverage/lcov.info 'lib/generated/*' 'lib/**/*_mock_impl.dart' 'lib/presentation/theme/*' 'lib/presentation/constants/*' -o coverage/lcov.info
build_coverage:
make test_coverage && make clean_coverage && genhtml -o coverage coverage/lcov.info
open_coverage:
make build_coverage && open coverage/index.html
build_runner_build:
fvm flutter packages pub run build_runner build --delete-conflicting-outputs
build_runner_watch:
fvm flutter packages pub run build_runner watch --delete-conflicting-outputs
# iOS
mock_ios:
fvm flutter build ios --flavor mock --dart-define=env.mode=mock
dev_ios:
fvm flutter build ios --flavor dev --dart-define=env.mode=dev
prod_ios:
fvm flutter build ios --flavor prod --dart-define=env.mode=prod
# Android
mock_android:
fvm flutter build apk --flavor mock --dart-define=env.mode=mock
dev_android:
fvm flutter build apk --flavor dev --dart-define=env.mode=dev
prod_android:
fvm flutter build apk --flavor prod --dart-define=env.mode=prod
prod_android_bundle:
fvm flutter build appbundle --flavor prod --dart-define=env.mode=prod
# Web
mock_web:
fvm flutter build web --release --dart-define=env.mode=mock
serve_web:
python3 -m http.server 8000 -d ./build/web/