-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
94 lines (84 loc) · 7.36 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
export PATH := /opt/homebrew/bin/:$(PATH)
ci: ci_install generate_project test
ci_install:
if [ "$(IS_CI)" ]; then \
brew install swiftgen xcbeautify xcodegen ; \
fi
project:
xcodegen
run_swiftformat::
if [ -z "$(IS_CI)" ]; then \
swiftformat App Core DesignSystem; \
fi
run_swiftgen:
swiftgen run strings App/Resources/* \
-t structured-swift5 \
-o App/Sources/Derived/Strings.swift && \
swiftgen run files Core/Tests/Resources/* \
-t structured-swift5 \
-o App/Tests/Derived/Files.swift && \
swiftgen run files Core/Tests/Resources/* \
-t structured-swift5 \
-o App/SnapshotTests/Derived/Files.swift && \
swiftgen run files Core/Tests/Resources/* \
-t structured-swift5 \
-o Core/Tests/Derived/Files.swift && \
swiftgen run fonts DesignSystem/Resources/* \
-t swift5 \
-o DesignSystem/Sources/Derived/Fonts.swift \
--param publicAccess && \
swiftgen run xcassets DesignSystem/Resources/* \
-t swift5 \
-o DesignSystem/Sources/Derived/Colors.swift \
--param publicAccess \
--param enumName=DesignSystemAsset && \
swiftgen run strings DesignSystem/Resources/* \
-t structured-swift5 \
-o DesignSystem/Sources/Derived/Strings.swift \
--param publicAccess \
--param enumName=DesignSystemL10n
test: test_core test_app
test_core:
xcodebuild \
-scheme Core \
-destination 'platform=iOS Simulator,OS=16.2,name=iPhone 14' \
test | xcbeautify
test_app:
xcodebuild \
-scheme App \
-destination 'platform=iOS Simulator,OS=16.2,name=iPhone 14' \
test | xcbeautify
bootstrap: fonts project
git lfs install
git lfs pull
fonts:
`echo 'Y3VybC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ZW5oYW0tbm9ybWFsLTcwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2NoZWx0ZW5oYW0vY2hlbHRlbmhhbS1ub3JtYWwtODAwLnR0ZiAtbyBEZXNpZ25TeXN0ZW0vUmVzb3VyY2VzL0ZvbnRzL2NoZWx0ZW5oYW0tbm9ybWFsLTgwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLWl0YWxpYy0zMDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4taXRhbGljLTMwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLWl0YWxpYy0zMDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4taXRhbGljLTMwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLWl0YWxpYy02MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4taXRhbGljLTYwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLWl0YWxpYy03MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4taXRhbGljLTcwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLWl0YWxpYy04MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4taXRhbGljLTgwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLWl0YWxpYy05MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4taXRhbGljLTkwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLW5vcm1hbC0zMDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4tbm9ybWFsLTMwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLW5vcm1hbC01MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4tbm9ybWFsLTUwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLW5vcm1hbC02MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4tbm9ybWFsLTYwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLW5vcm1hbC03MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4tbm9ybWFsLTcwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLW5vcm1hbC04MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4tbm9ybWFsLTgwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ZyYW5rbGluL2ZyYW5rbGluLW5vcm1hbC05MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvZnJhbmtsaW4tbm9ybWFsLTkwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ltcGVyaWFsL2ltcGVyaWFsLWl0YWxpYy01MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvaW1wZXJpYWwtaXRhbGljLTUwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ltcGVyaWFsL2ltcGVyaWFsLWl0YWxpYy02MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvaW1wZXJpYWwtaXRhbGljLTYwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ltcGVyaWFsL2ltcGVyaWFsLWl0YWxpYy03MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvaW1wZXJpYWwtaXRhbGljLTcwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ltcGVyaWFsL2ltcGVyaWFsLW5vcm1hbC01MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvaW1wZXJpYWwtbm9ybWFsLTUwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ltcGVyaWFsL2ltcGVyaWFsLW5vcm1hbC02MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvaW1wZXJpYWwtbm9ybWFsLTYwMC50dGYgLXM=' | base64 -d`
`echo 'Y3VybCBodHRwczovL2ExLm55dC5jb20vZm9udHMvZmFtaWx5L2ltcGVyaWFsL2ltcGVyaWFsLW5vcm1hbC03MDAudHRmIC1vIERlc2lnblN5c3RlbS9SZXNvdXJjZXMvRm9udHMvaW1wZXJpYWwtbm9ybWFsLTcwMC50dGYgLXM=' | base64 -d`