forked from AgoraDesk-LocalMonero/agoradesk-app-foss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
168 lines (133 loc) · 4.79 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
FLUTTER := $(shell which flutter)
FLUTTER_DIR := $(FLUTTER_BIN_DIR:/bin=)
DART := $(FLUTTER_BIN_DIR)/cache/dart-sdk/bin/dart
# # Obtain your API_KEY at https://localise.biz
# LOCALISE_KEY := ''
#
# SENTRY_AUTH_TOKEN := ''
MAX_LINE_LENGTH := 120
.PHONY: icon
icon:
$(FLUTTER) pub run flutter_launcher_icons:main
.PHONY: splash
splash:
$(FLUTTER) pub run flutter_native_splash:create
.PHONY: analyze
analyze:
$(FLUTTER) analyze
.PHONY: format
format:
$(FLUTTER) format -l $(MAX_LINE_LENGTH) .
.PHONY: test
test:
$(FLUTTER) test
# Bundle
.PHONY: build-bundle-all
build-bundle-all:
$(FLUTTER) build appbundle --flavor agoradesk --dart-define=app.flavor=agoradesk
$(FLUTTER) build appbundle --flavor localmonero --dart-define=app.flavor=localmonero
.PHONY: build-bundle-ad
build-bundle-ad:
$(FLUTTER) build appbundle --flavor agoradesk --dart-define=app.flavor=agoradesk
.PHONY: build-bundle-lm
build-bundle-lm:
$(FLUTTER) build appbundle --flavor localmonero --dart-define=app.flavor=localmonero
# FOSS bundle
.PHONY: build-foss-bundle-all
build-foss-bundle-all:
$(FLUTTER) build appbundle --flavor agoradesk --dart-define=app.flavor=agoradesk --dart-define=app.includeFcm=false
$(FLUTTER) build appbundle --flavor localmonero --dart-define=app.flavor=localmonero --dart-define=app.includeFcm=false
.PHONY: build-foss-bundle-ad
build-foss-bundle-ad:
$(FLUTTER) build appbundle --flavor agoradesk --dart-define=app.flavor=agoradesk --dart-define=app.includeFcm=false
.PHONY: build-foss-bundle-lm
build-foss-bundle-lm:
$(FLUTTER) build appbundle --flavor localmonero --dart-define=app.flavor=localmonero --dart-define=app.includeFcm=false
# ALL APKs
.PHONY: build-apks-for-release
build-apks-for-release:
$(FLUTTER) build apk --flavor agoradesk --dart-define=app.flavor=agoradesk --dart-define=app.includeFcm=false
mv /Users/macbook/projects/agoradesk-app-foss/build/app/outputs/apk/agoradesk/release/*.apk /Users/macbook/projects/agoradesk-app-foss/build/app/outputs/apk/
$(FLUTTER) build apk --flavor localmonero --dart-define=app.flavor=localmonero --dart-define=app.includeFcm=false
mv /Users/macbook/projects/agoradesk-app-foss/build/app/outputs/apk/localmonero/release/*.apk /Users/macbook/projects/agoradesk-app-foss/build/app/outputs/apk/
$(FLUTTER) build apk --flavor localmonero --dart-define=app.flavor=localmonero
$(FLUTTER) build apk --flavor agoradesk --dart-define=app.flavor=agoradesk
# APK
.PHONY: build-apk-all
build-apk-all:
$(FLUTTER) build apk --flavor localmonero --dart-define=app.flavor=localmonero
$(FLUTTER) build apk --flavor agoradesk --dart-define=app.flavor=agoradesk
.PHONY: build-apk-ad
build-apk-ad:
$(FLUTTER) build apk --flavor agoradesk --dart-define=app.flavor=agoradesk
.PHONY: build-apk-lm
build-apk-lm:
$(FLUTTER) build apk --flavor localmonero --dart-define=app.flavor=localmonero
# APK FOSS
.PHONY: build-foss-apk-all
build-foss-apk-all:
$(FLUTTER) build apk --flavor localmonero --dart-define=app.flavor=localmonero --dart-define=app.includeFcm=false
$(FLUTTER) build apk --flavor agoradesk --dart-define=app.flavor=agoradesk --dart-define=app.includeFcm=false
.PHONY: build-foss-apk-ad
build-foss-apk-ad:
$(FLUTTER) build apk --flavor agoradesk --dart-define=app.flavor=agoradesk --dart-define=app.includeFcm=false
.PHONY: build-foss-apk-lm
build-foss-apk-lm:
$(FLUTTER) build apk --flavor localmonero --dart-define=app.flavor=localmonero --dart-define=app.includeFcm=false
# iOS
.PHONY: build-ios-all
build-ios-all:
$(FLUTTER) build ipa --flavor localmonero --dart-define=app.flavor=localmonero
mv /Users/mavbook/projects/agoradesk-app-foss/build/ios/ipa/Agoradesk.ipa /Users/mavbook/projects/agoradesk-app-foss/build/ios/ipa/Localmonero.ipa
$(FLUTTER) build ipa --flavor agoradesk --dart-define=app.flavor=agoradesk
.PHONY: build-ios-ad
build-ios-ad:
$(FLUTTER) build ipa --flavor agoradesk --dart-define=app.flavor=agoradesk
.PHONY: build-ios-lm
build-ios-lm:
$(FLUTTER) build ipa --flavor localmonero --dart-define=app.flavor=localmonero
#
#
#
.PHONY: internal-android
internal-android:
cd android && fastlane internal
.PHONY: beta-android
beta-android:
cd android && fastlane beta
.PHONY: build-ios
build-ios:
cd ios && fastlane build_ios
.PHONY: deploy-ios
deploy-ios:
cd ios && fastlane deploy_ios testflight:true
.PHONY: beta-ios
beta-ios: build-ios deploy-ios
.PHONY: b-r
b-r:
$(FLUTTER) packages pub run build_runner build --delete-conflicting-outputs
.PHONY: clean
clean:
$(FLUTTER) clean
$(FLUTTER) pub get
.PHONY: i-clean
i-clean:
$(FLUTTER) clean
$(FLUTTER) pub get
cd ios
pod update
cd ..
.PHONY: cocoa-pods-update
coco:
cd ios
sudo gem install cocoapods
pod update
.PHONY: watch
watch:
$(FLUTTER) packages pub run build_runner watch --delete-conflicting-outputs
.PHONY: l10n
l10n:
$(FLUTTER) gen-l10n
.PHONY: l10n-sync
l10n-sync:
./scripts/update-l10n.sh $(LOCALISE_KEY)