forked from stepanzalis/flutter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
65 lines (52 loc) · 1.84 KB
/
Makefile
File metadata and controls
65 lines (52 loc) · 1.84 KB
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
.PHONY: dependencies
dependencies:
@echo "╠ Running flutter pub get"
flutter pub get
.PHONY: analyze
analyze:
@echo "╠ Analyzing project ..."
flutter analyze
.PHONY: format
format:
@echo "╠ Formatting whole project ..."
flutter format lib/
.PHONY: format-analyze
format-analyze:
flutter format --dry-run lib/
flutter analyze
.PHONY: build-runner
build-runner:
@echo "╠ Running build runner with deleted outputs"
flutter packages pub run build_runner build --delete-conflicting-outputs
.PHONY: run-stage
run-stage:
@echo "╠ Running STAGE version of the app ..."
flutter run --dart-define=environment=STAGE --target lib/main.dart
.PHONY: run-prod
run-prod:
@echo "╠ Running PROD version of the app ..."
flutter run --dart-define=environment=PROD --target lib/main.dart
.PHONY: run-stage-release
run-stage:
@echo "╠ Running STAGE version of the app ..."
flutter run --release --dart-define=environment=STAGE --target lib/main.dart
.PHONY: run-prod-release
run-prod:
@echo "╠ Running PROD version of the app ..."
flutter run --release --dart-define=environment=PROD --target lib/main.dart
.PHONY: build-android-stage
build-android-stage:
@echo "╠ Building Android STAGE version of the app ..."
flutter build apk --dart-define=environment=STAGE --target lib/main.dart
.PHONY: build-android-prod
build-android-prod:
@echo "╠ Building Android PROD version of the app ..."
flutter build apk --release --dart-define=environment=PROD --target lib/main.dart
.PHONY: build-ios-stage
build-ios-stage:
@echo "╠ Building iOS STAGE version of the app ..."
flutter build ios --no-codesign --dart-define=environment=STAGE --target lib/main.dart
.PHONY: build-ios-prod
build-ios-prod:
@echo "╠ Building iOS PROD version of the app ..."
flutter build ios --release --no-codesign --dart-define=environment=PROD --target lib/main.dart