-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.swift
More file actions
93 lines (91 loc) · 3.56 KB
/
Project.swift
File metadata and controls
93 lines (91 loc) · 3.56 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
import ProjectDescription
let projectName = "HotSpot"
let organizationName = "Coby"
let bundleID = "com.coby.HotSpot"
let bundleTestID = "com.coby.HotSpotTests"
let targetVersion = "15.0"
let version = "1.0.0"
let bundleVersion = "0"
let baseURL = "http://webservice.recruit.co.jp/hotpepper"
let apiKey = "8011379945b3b751"
let project = Project(
name: projectName,
organizationName: organizationName,
settings: .settings(
base: [
"BASE_URL": SettingValue(stringLiteral: baseURL),
"API_KEY": SettingValue(stringLiteral: apiKey),
"SWIFT_VERSION": SettingValue(stringLiteral: "5.9"),
"DEVELOPMENT_TEAM": SettingValue(stringLiteral: "3Y8YH8GWMM")
],
configurations: [
.debug(name: .debug),
.release(name: .release)
]
),
targets: [
.target(
name: projectName,
destinations: [.iPhone],
product: .app,
bundleId: bundleID,
deploymentTargets: .iOS(targetVersion),
infoPlist: .extendingDefault(
with: [
"CFBundleShortVersionString": .string(version),
"CFBundleVersion": .string(bundleVersion),
"CFBundleDisplayName": .string(projectName),
"BASE_URL": .string(baseURL),
"API_KEY": .string(apiKey),
"UILaunchScreen": .dictionary([
"UIColorName": .string(""),
"UIImageName": .string("")
]),
"NSAppTransportSecurity": .dictionary([
"NSExceptionDomains": .dictionary([
"webservice.recruit.co.jp": .dictionary([
"NSExceptionAllowsInsecureHTTPLoads": .boolean(true)
])
])
]),
"NSLocationWhenInUseUsageDescription": .string("周辺の店舗を表示するために位置情報が必要です。"),
"NSLocationAlwaysAndWhenInUseUsageDescription": .string("周辺の店舗を表示するために位置情報が必要です。")
]
),
sources: ["HotSpot/App/Sources/**"],
resources: ["HotSpot/App/Resources/**"],
dependencies: [
.project(target: "Presentation", path: "HotSpot/Presentation"),
.project(target: "Domain", path: "HotSpot/Domain"),
.project(target: "Shared", path: "HotSpot/Shared"),
.project(target: "Data", path: "HotSpot/Data"),
.external(name: "CobyDS"),
.external(name: "Moya"),
.external(name: "ComposableArchitecture"),
.external(name: "Kingfisher")
]
),
.target(
name: "\(projectName)Tests",
destinations: .iOS,
product: .unitTests,
bundleId: bundleTestID,
infoPlist: .default,
sources: ["HotSpot/App/Tests/**"],
resources: [],
dependencies: [.target(name: projectName)]
),
],
schemes: [
.scheme(
name: "\(projectName) Debug",
buildAction: .buildAction(targets: ["\(projectName)"]),
runAction: .runAction(configuration: .debug)
),
.scheme(
name: "\(projectName) Release",
buildAction: .buildAction(targets: ["\(projectName)"]),
runAction: .runAction(configuration: .release)
)
]
)