-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.swift
More file actions
217 lines (208 loc) · 9.19 KB
/
Project.swift
File metadata and controls
217 lines (208 loc) · 9.19 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
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
import ProjectDescription
let iOSVersion = "16.0"
let teamID = "4QUWH828P3"
let appVersion = "1.5.0"
let buildNumber = "1"
let project = Project(
name: "Oreum",
targets: [
.target(
name: "Oreum",
destinations: [.iPhone],
product: .app,
bundleId: "com.kyh.Oreum",
deploymentTargets: .iOS(iOSVersion),
infoPlist: .extendingDefault(
with: [
"CFBundleDisplayName": "오름",
"UILaunchStoryboardName": "LaunchScreen",
"UIApplicationSceneManifest": [
"UIApplicationSupportsMultipleScenes": false,
"UISceneConfigurations": [
"UIWindowSceneSessionRoleApplication": [
[
"UISceneConfigurationName": "Default Configuration",
"UISceneDelegateClassName": "$(PRODUCT_MODULE_NAME).SceneDelegate"
],
]
]
],
"CFBundleShortVersionString": .string(appVersion),
"UIUserInterfaceStyle": "Light",
"App Uses Non-Exempty Encryption": false,
"UISupportedInterfaceOrientations": [
"UIInterfaceOrientationPortrait"
],
"NSHealthShareUsageDescription": "등산 기록을 위해 걸음 수와 이동 거리 데이터를 사용합니다.",
"NSHealthUpdateUsageDescription": "등산 활동 데이터를 저장하기 위해 HealthKit 접근이 필요합니다.",
"NSLocationWhenInUseUsageDescription": "내 주위 명산을 표기하기 위해 위치 정보를 사용합니다."
]
),
sources: ["Oreum/Sources/**"],
resources: ["Oreum/Resources/**"],
entitlements: .file(path: "Oreum/Oreum.entitlements"),
scripts: [
.post(
script: """
"${PROJECT_DIR}/Tuist/.build/checkouts/firebase-ios-sdk/Crashlytics/run"
""",
name: "Crashlytics",
inputPaths: [
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}",
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${PRODUCT_NAME}",
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist",
"$(TARGET_BUILD_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/GoogleService-Info.plist",
"$(TARGET_BUILD_DIR)/$(EXECUTABLE_PATH)",
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${PRODUCT_NAME}.debug.dylib"
],
basedOnDependencyAnalysis: false
)
],
dependencies: [
.target(name: "Presentation"),
.target(name: "Domain"),
.target(name: "Data"),
.target(name: "Core"),
.target(name: "OreumWidgetExtension"),
.external(name: "FirebaseAnalytics"),
.external(name: "FirebaseCrashlytics")
],
settings: .settings(
base: [
"DEBUG_INFORMATION_FORMAT": "dwarf-with-dsym",
"CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION": "YES",
"OTHER_LDFLAGS": "$(inherited) -ObjC",
"ENABLE_DEBUG_DYLIB": "NO",
"DEVELOPMENT_TEAM": .string(teamID),
"MARKETING_VERSION": .string(appVersion),
"CURRENT_PROJECT_VERSION": .string(buildNumber)
],
configurations: [
.release(name: .release, settings: [
"CODE_SIGN_STYLE": "Manual",
"CODE_SIGN_IDENTITY": "Apple Distribution"
])
]
)
),
.target(name: "Core",
destinations: [.iPhone],
product: .framework,
bundleId: "com.kyh.Core",
deploymentTargets: .iOS(iOSVersion),
sources: ["Core/Sources/**"],
dependencies: [],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": .string(teamID)
]
)
),
.target(name: "Domain",
destinations: [.iPhone],
product: .framework,
bundleId: "com.kyh.Domain",
deploymentTargets: .iOS(iOSVersion),
sources: ["Domain/Sources/**"],
dependencies: [
.target(name: "Core")
],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": .string(teamID)
]
)
),
.target(name: "DomainTests",
destinations: [.iPhone],
product: .unitTests,
bundleId: "com.kyh.DomainTests",
deploymentTargets: .iOS(iOSVersion),
sources: ["DomainTests/**"],
dependencies: [
.target(name: "Domain"),
.target(name: "Data")
],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": .string(teamID)
]
)
),
.target(name: "Data",
destinations: [.iPhone],
product: .framework,
bundleId: "com.kyh.Data",
deploymentTargets: .iOS(iOSVersion),
sources: ["Data/Sources/**"],
resources: ["Data/Resources/**"],
dependencies: [
.target(name: "Core"),
.target(name: "Domain"),
.external(name: "RealmSwift"),
.external(name: "Alamofire"),
.external(name: "XMLCoder")
],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": .string(teamID)
]
)
),
.target(name: "Presentation",
destinations: [.iPhone],
product: .framework,
bundleId: "com.kyh.Presentation",
deploymentTargets: .iOS(iOSVersion),
sources: ["Presentation/Sources/**"],
resources: ["Presentation/Resources/**"],
dependencies: [
.target(name: "Domain"),
.target(name: "Data"),
.target(name: "Core"),
.external(name: "Kingfisher"),
.external(name: "SnapKit"),
.external(name: "Toast")
],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": .string(teamID)
]
)
),
.target(name: "OreumWidgetExtension",
destinations: [.iPhone],
product: .appExtension,
bundleId: "com.kyh.Oreum.OreumWidget",
deploymentTargets: .iOS(iOSVersion),
infoPlist: .extendingDefault(
with: [
"CFBundleDisplayName": "오름 위젯",
"CFBundleShortVersionString": .string(appVersion),
"NSExtension": [
"NSExtensionPointIdentifier": "com.apple.widgetkit-extension"
]
]
),
sources: ["OreumWidget/Sources/**"],
resources: [],
entitlements: .file(path: "OreumWidget/OreumWidget.entitlements"),
dependencies: [
.target(name: "Core")
],
settings: .settings(
base: [
"DEVELOPMENT_TEAM": .string(teamID),
"MARKETING_VERSION": .string(appVersion),
"CURRENT_PROJECT_VERSION": .string(buildNumber)
],
configurations: [
.release(name: .release, settings: [
"CODE_SIGN_STYLE": "Manual",
"CODE_SIGN_IDENTITY": "Apple Distribution"
])
]
)
)
]
)