-
Notifications
You must be signed in to change notification settings - Fork 12
/
Project.swift
29 lines (25 loc) · 939 Bytes
/
Project.swift
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
import ProjectDescription
import ProjectDescriptionHelpers
let project = Project.project(name: "{PROJECT_NAME}", bundleId: "${PRODUCT_BUNDLE_IDENTIFIER}")
extension Project {
static func project(name: String, bundleId: String) -> Project {
let targets = Target.makeTargets(name: name, bundleId: bundleId)
return Project(
name: name,
organizationName: "Nimble",
options: .options(
disableBundleAccessors: true,
disableSynthesizedResourceAccessors: true
),
settings: .settings(
configurations: BuildConfiguration.allCases.map { $0.createConfiguration(projectName: name) }
),
targets: targets,
schemes: [
.productionScheme(name: name),
.stagingScheme(name: name),
.kifUITestsScheme(name: name)
]
)
}
}