-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
64 lines (54 loc) · 1.58 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
.DEFAULT_GOAL := generate
# Paths
XCODEGEN := xcodegen
SWIFTGEN := swiftgen
SWIFTFORMAT := swiftformat
PROJECT := pilotWallet.xcodeproj
# SPM
SPM_DIRS := Modules/Platforms/BITCore \
Modules/Platforms/BITNavigation \
Modules/Platforms/BITTheming \
Modules/Platforms/BITCrypto \
Modules/Platforms/BITQRScanner \
Modules/Platforms/BITNetworking \
Modules/Platforms/BITVault \
Modules/Platforms/BITDataStore \
Modules/Platforms/BITDeeplink \
Modules/Platforms/BITSdJWT \
Modules/Platforms/BITLocalAuthentication \
Modules/Platforms/BITAnalytics \
Modules/Platforms/BITSecurity \
Modules/Features/BITInvitation \
Modules/Features/BITOnboarding \
Modules/Features/BITAppAuth \
Modules/Features/BITCredential \
Modules/Features/BITSettings \
Modules/Features/BITPresentation \
Modules/Features/BITHome \
Modules/Features/BITActivity \
install:
@echo "=> Installing tools"
brew update
brew bundle
bundle install
generate-info-plist:
@echo "=> Generating Info.plist using xcodegen"
$(XCODEGEN) generate
generate-swiftgen:
@echo "=> Generating Swift code using swiftgen"
$(SWIFTGEN) && \
$(XCODEGEN) generate
prepare-modules:
@echo "=> Generation & Configuration of Modules"
for dir in $(SPM_DIRS); do \
(cd "$$dir" && make); \
done
swiftformat:
@echo "=> Formatting Swift code using swiftformat"
$(SWIFTFORMAT) .
open-project:
@echo "=> Opening Xcode project"
open "$(PROJECT)"
generate: generate-info-plist generate-swiftgen swiftformat prepare-modules open-project
setup: install generate swiftformat open-project
@echo "=> Done"