-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (61 loc) · 2.52 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
72
73
74
75
76
77
78
get:
echo "╠ Installing dependencies..."
fvm flutter pub get
outdated:
echo "╠ Resolving dependencies..."
fvm flutter pub outdated
sorter:
echo "╠ Sorting imports..."
fvm dart run import_sorter:main lib\/* test\/*
clean: ## Cleans the environment
echo "╠ Cleaning the project..."
fvm flutter clean
echo "╠ Installing dependencies..."
make get
install:
make ios_install
make macos_install
ios_install: ## Installing ios dependencies
echo "╠ Resolving ios dependencies..."
cd ios && pod install && cd ..
macos_install: ## Installing ios dependencies
echo "╠ Resolving macos dependencies..."
cd macos && pod install && cd ..
icon: ## Generate icons
echo "╠ Generate icons..."
fvm dart run flutter_native_splash:create
build_watch: ## Watches the files for changes
echo "╠ Watching the project..."
fvm dart run build_runner watch --delete-conflicting-outputs
build_runner: ## Build the files for changes
echo "╠ Building the project..."
fvm dart run build_runner build --delete-conflicting-outputs
clean_runner: ## Deleting cache and generated source files
echo "╠ Deleting cache and generated source files..."
fvm dart run build_runner clean
apk: ## Release Apk
echo "╠ Releasing Apk..."
fvm flutter build apk --no-tree-shake-icons --dart-define-from-file=".env.$(ENV).local" --flavor staging
appbundle: ## Release Appbundle
echo "╠ Releasing Appbundle..."
fvm flutter build appbundle --no-tree-shake-icons --dart-define-from-file=".env.$(ENV).local" --flavor production
adhoc:
echo "╠ Removing build products and intermediate files from the build root..."
cd ios && xcodebuild clean && cd ..
echo "╠ Releasing to adhoc..."
fvm flutter build ipa --dart-define-from-file=".env.$(ENV).local" --export-options-plist=ios/ExportOptions-debug.plist
appstore:
echo "╠ Removing build products and intermediate files from the build root..."
cd ios && xcodebuild clean && cd ..
echo "╠ Releasing to app store..."
fvm flutter build ipa --dart-define-from-file=".env.$(ENV).local" --export-options-plist=ios/ExportOptions-release.plist
macos_adhoc:
echo "╠ Removing build products and intermediate files from the build root..."
cd macos && xcodebuild clean && cd ..
echo "╠ Releasing bundle..."
fvm flutter build macos --dart-define-from-file=".env.$(ENV).local"
macos_appstore:
echo "╠ Removing build products and intermediate files from the build root..."
cd macos && xcodebuild clean && cd ..
echo "╠ Releasing bundle..."
fvm flutter build macos --dart-define-from-file=".env.$(ENV).local"