forked from luiscib3r/todo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
46 lines (38 loc) · 1.32 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
.PHONY: generate
generate:
flutter packages pub run build_runner build --delete-conflicting-outputs
.PHONY: run
run:
flutter run --flavor development --target lib/main_development.dart
.PHONY: run-prod
run-prod:
flutter run --flavor production --target lib/main_production.dart
.PHONY: build
build:
flutter build apk --flavor production --target lib/main_production.dart --target-platform=android-arm
.PHONY: build-stg
build-stg:
flutter build apk --flavor staging --target lib/main_staging.dart --target-platform=android-arm
.PHONY: build-dev
build-dev:
flutter build apk --flavor development --target lib/main_development.dart --target-platform=android-arm
.PHONY: splash
splash:
flutter packages pub run flutter_native_splash:create
rm -r android/app/src/development/res
rm -r android/app/src/staging/res
cp -r android/app/src/main/res android/app/src/development
cp -r android/app/src/main/res android/app/src/staging
.PHONY: icon
icon:
flutter pub run flutter_launcher_icons:main
rm -r android/app/src/development/res
rm -r android/app/src/staging/res
cp -r android/app/src/main/res android/app/src/development
cp -r android/app/src/main/res android/app/src/staging
.PHONY: report
report:
rm file_structure.txt
tree lib/ > file_structure.txt
rm lines_of_code.txt
find lib/ -name '*.dart' | xargs wc -l > lines_of_code.txt