-
Notifications
You must be signed in to change notification settings - Fork 28
/
Makefile
52 lines (39 loc) · 1.29 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
.PHONY: gen genAll rebuild check get localize runDev runDevQa runDevStaging lines release apk
# clean project, install dependencies & generate sources
rebuild:
flutter clean
flutter packages pub get
flutter packages pub run build_runner build --delete-conflicting-outputs
fluttergen -c pubspec.yaml
# generate localizations, dependencies, image assets, colors, fonts
gen:
flutter packages pub run build_runner build --delete-conflicting-outputs
# generate localizations, dependencies, image assets, colors, fonts
genAll:
flutter packages pub run build_runner build --delete-conflicting-outputs
flutter pub run intl_utils:generate
fluttergen -c pubspec.yaml
# generate localizations
localize:
flutter pub run intl_utils:generate
# analyze the project
check:
dart analyze .
# flutter pub run dart_code_metrics:metrics analyze lib
# flavors
runDev:
flutter run --flavor dev -t lib/main.dart
runDevQa:
flutter run --flavor dev -t lib/main_qa.dart
runDevStaging:
flutter run --flavor dev -t lib/main_staging.dart
release:
flutter run --release -t lib/main_release.dart
prodRelease:
flutter run --flavor prod --release -t lib/main_release.dart
apk:
flutter build apk --release -t lib/main_release.dart
lines:
find . -name '*.dart' | xargs wc -l
force_upgrade:
flutter update-packages --force-upgrade