-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathProject.swift
84 lines (77 loc) · 2.66 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
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
import ProjectDescription
import ProjectDescriptionHelpers
/*
+-------------+
| |
| App | Contains TuistSample App target and TuistSample unit-test target
| |
+------+-------------+-------+
| depends on |
| |
+----v-----+ +-----v-----+
| | | |
| Kit | | UI | Two independent frameworks to share code and start modularising your app
| | | |
+----------+ +-----------+
*/
let targetActions = [
TargetAction.pre(
path: "Scripts/SwiftLintRunScript.sh",
arguments: [],
name: "SwiftLint"
),
TargetAction.pre(
path: "Scripts/RSwiftRunScript.sh",
arguments: [],
name: "R.swift",
inputPaths: [Path.init("$TEMP_DIR/rswift-lastrun")],
inputFileListPaths: [],
outputPaths: [Path.init("$SRCROOT/SwinjectReactorKitExample/Resources/R.generated.swift")],
outputFileListPaths: []
)
]
let targets = [
Target(
name: "SwinjectReactorKitExample",
platform: .iOS,
product: .app,
bundleId: "com.havi.SwinjectReactorKitExample",
deploymentTarget: .iOS(targetVersion: "14.5", devices: [.iphone]),
infoPlist: "SwinjectReactorKitExample/Supporting/Info.plist",
sources: "SwinjectReactorKitExample/Sources/**",
resources: "SwinjectReactorKitExample/Resources/**",
actions: targetActions,
dependencies: [
.cocoapods(path: ".")
]
),
Target(
name: "SwinjectReactorKitExampleTests",
platform: .iOS,
product: .unitTests,
bundleId: "com.havi.SwinjectReactorKitExampleTests",
infoPlist: "SwinjectReactorKitExampleTests/Info.plist",
sources: "SwinjectReactorKitExampleTests/**",
dependencies: [
.target(name: "SwinjectReactorKitExample")
]
),
Target(
name: "SwinjectReactorKitExampleUITests",
platform: .iOS,
product: .uiTests,
bundleId: "com.havi.SwinjectReactorKitExampleUITests",
infoPlist: "SwinjectReactorKitExampleTests/Info.plist",
sources: "SwinjectReactorKitExampleUITests/**",
dependencies: [
.target(name: "SwinjectReactorKitExample")
]
)
]
// MARK: - Project
// Creates our project using a helper function defined in ProjectDescriptionHelpers
let project = Project(
name: "SwinjectReactorKitExample",
organizationName: "havi",
targets: targets
)