-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
70 lines (53 loc) · 1.74 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
SHELL := /bin/bash
.PHONY: ci-tests
PROJECT_BUILD_NUMBER=65
gen-code:
fvm dart run build_runner build --delete-conflicting-outputs
make format-files
ci-tests:
fvm dart format --set-exit-if-changed . -l 120
fvm dart analyze
fvm flutter test -r expanded --coverage
sh filter_lcov.sh
fvm dart run covadge ./coverage/lcov.info ./
format-files:
fvm dart format . -l 120
filter-lcov:
/bin/zsh ./filter_lcov.sh
fvm dart run covadge ./coverage/lcov.info ./
show-test-coverage:
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html
cache-repair:
fvm flutter pub cache repair
make clean
pub-get:
fvm flutter pub get
clean:
fvm flutter clean
fvm flutter pub get
adb-restart:
adb kill-server
adb start-server
build-ipa-stg:
fvm flutter build ipa --release --flavor stg -t lib/main_stg.dart --build-number=${PROJECT_BUILD_NUMBER} --export-options-plist=./ios/export_options_stg.plist --no-tree-shake-icons
build-apk-stg:
fvm flutter build apk --release --flavor stg -t lib/main_stg.dart --build-number=${PROJECT_BUILD_NUMBER} --no-tree-shake-icons
########################################
########## LESS USED COMMANDS ##########
########################################
# Generate flavorizr native configurations.
# This will override app.dart, flavors.dart and all main_X.dart.
# Only run if you know what you are doing.
# After running, the cited files need to be reset to their previous state.
gen-flavors:
fvm dart run flutter_flavorizr
# Generate launcher icons
gen-launcher-icons:
fvm dart run flutter_launcher_icons
# Generate native splash screens for each flavor
gen-native-splash:
fvm dart run flutter_native_splash:create --flavor stg
fvm dart run flutter_native_splash:create --flavor prod
apply-lint:
fvm dart fix --apply