-
Notifications
You must be signed in to change notification settings - Fork 11
/
makefile
71 lines (49 loc) · 1.61 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
71
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/**/*.g.dart' '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
generate_intl:
fvm flutter gen-l10n
build_runner_build:
fvm dart run build_runner build -d
build_runner_watch:
fvm dart run build_runner watch -d
# 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
dev_web:
fvm flutter build web --release --dart-define=env.mode=dev
prod_web:
fvm flutter build web --release --dart-define=env.mode=prod
serve_web:
python3 -m http.server 8000 -d ./build/web/