-
Notifications
You must be signed in to change notification settings - Fork 0
/
Project.swift
50 lines (47 loc) · 1.37 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import ProjectDescription
let projectName: String = "GithubSearch"
let organizationName: String = "GenithLabs"
let bundleName: String = "com.genithlabs"
let projectSettings = Settings.settings(
configurations: [
.debug(name: "Debug", xcconfig: Path("Configs/Project-Debug.xcconfig")),
.release(name: "Release", xcconfig: Path("Configs/Project-Release.xcconfig"))
]
)
let targetSettings = Settings.settings(
configurations: [
.debug(name: "Debug", xcconfig: Path("Configs/GithubSearch-Debug.xcconfig")),
.release(name: "Release", xcconfig: Path("Configs/GithubSearch-Release.xcconfig"))
]
)
let project = Project(
name: projectName,
organizationName: organizationName,
settings: projectSettings,
targets: [
Target(
name: projectName,
platform: .iOS,
product: .app,
bundleId: "com.genithlabs.\(projectName)",
infoPlist: "Project/\(projectName)/Supporting Files/Info.plist",
sources: ["Project/\(projectName)/Sources/**"],
resources: ["Project/\(projectName)/Resources/**"],
dependencies: [],
settings: targetSettings
),
Target(
name: "UnitTests",
platform: .iOS,
product: .unitTests,
bundleId: "com.genithlabs.\(projectName)Tests",
infoPlist: .default,
sources: [
"Tests/**"
],
dependencies: [
.target(name: projectName)
]
)
]
)