Repository navigation
Expand file tree
/
Copy pathProject.swift
More file actions
139 lines (138 loc) · 5.89 KB
/
Copy pathProject.swift
File metadata and controls
139 lines (138 loc) · 5.89 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
import ProjectDescription
let project = Project(
name: "GYMUP",
packages: [
.remote(url: "https://github.com/spotify/ios-sdk.git", requirement: .exact("5.0.1")),
],
targets: [
.target(
name: "GYMUP",
destinations: .iOS,
product: .app,
bundleId: "com.teamnative.gymup",
deploymentTargets: .iOS("17.0"),
infoPlist: .extendingDefault(
with: [
// Release reads this build setting (see the Release configuration below). Debug uses Config/Info-Debug.plist.
// An empty value is invalid and disables API services.
"GYMUP_API_BASE_URL": "$(GYMUP_API_BASE_URL)",
"GYMUP_SPOTIFY_CLIENT_ID": "$(GYMUP_SPOTIFY_CLIENT_ID)",
"GYMUP_SPOTIFY_REDIRECT_URI": "com.teamnative.gymup.spotify://oauth/callback",
"CFBundleURLTypes": [
[
"CFBundleURLName": "com.teamnative.gymup.spotify",
"CFBundleURLSchemes": ["com.teamnative.gymup.spotify"],
],
],
"UILaunchScreen": [:],
"NSSupportsLiveActivities": true,
"NSCameraUsageDescription": "운동 기록 사진을 촬영하기 위해 카메라 접근 권한이 필요합니다.",
"NSAppleMusicUsageDescription": "운동 중 선택한 Apple Music 플레이리스트를 재생하기 위해 음악 접근 권한이 필요합니다.",
"UIBackgroundModes": ["audio"],
"LSApplicationQueriesSchemes": ["spotify"],
"UIAppFonts": [
"NotoSansKR[wght].ttf",
"Fonts/GothicA1-Medium.ttf",
"Fonts/GothicA1-SemiBold.ttf",
"Fonts/GothicA1-Bold.ttf",
"Fonts/GothicA1-ExtraBold.ttf",
"Fonts/BarlowCondensed-Black.ttf",
"Fonts/BarlowCondensed-Bold.ttf",
"Fonts/BarlowCondensed-ExtraBold.ttf",
"Fonts/Archivo[wdth,wght].ttf",
],
]
),
sources: ["GYMUP/Sources/**"],
resources: [
"GYMUP/Resources/Assets.xcassets",
.folderReference(path: "GYMUP/Resources/Fonts"),
"GYMUP/Resources/*.ttf",
],
dependencies: [
.target(name: "GYMUPWidgetExtension"),
.package(product: "SpotifyiOS"),
],
settings: .settings(
base: [
"ASSETCATALOG_COMPILER_APPICON_NAME": "",
"CODE_SIGN_ENTITLEMENTS": "GYMUP/GYMUP.entitlements",
],
configurations: [
.debug(
name: "Debug",
// Preserve the ATS nested dictionary from a complete Debug-only plist.
settings: [
"GENERATE_INFOPLIST_FILE": "NO",
"INFOPLIST_FILE": "$(SRCROOT)/Config/Info-Debug.plist",
]
),
.release(
name: "Release",
// Development server until the production host is decided (team-native/GYMUP-Backend#23).
settings: ["GYMUP_API_BASE_URL": "https://gymup-dev.https.gsmsv.site"]
)
]
)
),
.target(
name: "GYMUPWidgetExtension",
destinations: .iOS,
product: .appExtension,
bundleId: "com.teamnative.gymup.widgets",
deploymentTargets: .iOS("17.0"),
infoPlist: .extendingDefault(
with: [
"NSExtension": [
"NSExtensionPointIdentifier": "com.apple.widgetkit-extension",
],
"NSSupportsLiveActivities": true,
"UIAppFonts": [
"Fonts/BarlowCondensed-Black.ttf",
"Fonts/BarlowCondensed-Bold.ttf",
"Fonts/BarlowCondensed-ExtraBold.ttf",
"Fonts/GothicA1-Medium.ttf",
"Fonts/GothicA1-SemiBold.ttf",
"Fonts/GothicA1-Bold.ttf",
"Fonts/GothicA1-ExtraBold.ttf",
"Fonts/Archivo[wdth,wght].ttf",
],
]
),
sources: [
"GYMUPWidgetExtension/Sources/**",
"GYMUP/Sources/Features/WorkoutSession/WorkoutRestActivityAttributes.swift",
],
resources: [.folderReference(path: "GYMUP/Resources/Fonts")],
dependencies: []
),
.target(
name: "GYMUPTests",
destinations: .iOS,
product: .unitTests,
bundleId: "com.teamnative.gymup.tests",
deploymentTargets: .iOS("17.0"),
infoPlist: .default,
sources: ["GYMUP/Tests/**"],
dependencies: [.target(name: "GYMUP")]
),
.target(
name: "GYMUPUITests",
destinations: .iOS,
product: .uiTests,
bundleId: "com.teamnative.gymup.uitests",
deploymentTargets: .iOS("17.0"),
infoPlist: .default,
sources: ["GYMUP/UITests/**"],
dependencies: [.target(name: "GYMUP")]
),
],
schemes: [
.scheme(
name: "GYMUP",
buildAction: .buildAction(targets: ["GYMUP"]),
testAction: .targets([.testableTarget(target: "GYMUPTests"), .testableTarget(target: "GYMUPUITests")]),
runAction: .runAction(executable: .target("GYMUP"))
),
]
)