-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProject.swift
More file actions
98 lines (92 loc) · 3.11 KB
/
Project.swift
File metadata and controls
98 lines (92 loc) · 3.11 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
import ProjectDescription
let bundleId: String = "io.tuist.SODAM" // 번들 ID
let minimumVersionIOS: String = "17.0" // IOS 최소 버젼
let appVersion: Plist.Value = "1.0.0" // 앱 버젼 정보
let appName: Plist.Value = "소담"
let sodamApp: Target = .target(
name: "SODAM",
destinations: [.iPhone],
product: .app,
bundleId: bundleId,
deploymentTargets: .iOS(minimumVersionIOS), // IOS 최소 버젼
infoPlist: .extendingDefault(
with: [
"UILaunchScreen": [
"UIColorName": "",
"UIImageName": "",
],
"UIBackgroundModes": [
"audio" // 오디오 백그라운드 모드만 추가
],
// 250513 1709 KTG
// 앱 사용 중일 때 위치 권한
"NSLocationWhenInUseUsageDescription": "앱 사용 중 위치 권한.",
// 앱이 백그라운드일 때 위치 권한
"NSLocationAlwaysAndWhenInUseUsageDescription": "백그라운드에서 위치 권한.",
"KAKAO_APP_KEY": "$(KAKAO_APP_KEY)",
"TOUR_API_KEY": "$(TOUR_API_KEY)",
"GEOCODER_API_KEY": "$(GEOCODER_API_KEY)",
"NSAppTransportSecurity": [
"NSExceptionDomains": [
"apis.data.go.kr": [
"NSExceptionAllowsInsecureHTTPLoads": true,
"NSIncludesSubdomains": true,
"NSExceptionRequiresForwardSecrecy": false
]
]
],
"CFBundleShortVersionString": appVersion, // version
"CFBundleVersion": "1", // build number
"CFBundleDisplayName": appName
]
),
sources: ["SODAM/Sources/**"],
resources: ["SODAM/Resources/**"],
dependencies: [
.target(name: "UICommonExtension"),
.external(name: "KakaoMapsSDK-SPM")
],
settings: .settings(
base: [:],
configurations: [
.debug(
name: "Debug",
xcconfig: .relativeToRoot("Configurations/config.xcconfig")
),
.release(
name: "Release",
xcconfig: .relativeToRoot("Configurations/config.xcconfig")
)
]
)
)
let sodamAppTests: Target = .target(
name: "SODAMTests",
destinations: [.iPhone],
product: .unitTests,
bundleId: "\(bundleId).SODAMTests",
deploymentTargets: .iOS(minimumVersionIOS), // IOS 최소 버젼
infoPlist: .default,
sources: ["SODAM/Tests/**"],
resources: [],
dependencies: [.target(name: "SODAM")]
)
// TODO: 커스텀 컬러 사용을 위한 라이브러리
let uiCommonExtension: Target = .target(
name: "UICommonExtension",
destinations: [.iPhone],
product: .staticLibrary,
bundleId: "\(bundleId).UICommonExtension",
deploymentTargets: .iOS(minimumVersionIOS), // IOS 최소 버젼
infoPlist: .default,
sources: ["SODAM/UICommon/**"],
dependencies: []
)
let project = Project(
name: "SODAM",
targets: [
sodamApp,
sodamAppTests,
uiCommonExtension,
]
)