-
Notifications
You must be signed in to change notification settings - Fork 9
/
Package.swift
178 lines (177 loc) · 5.57 KB
/
Package.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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "Pillarbox",
defaultLocalization: "en",
platforms: [
.iOS(.v16),
.tvOS(.v16)
],
products: [
.library(
name: "PillarboxAnalytics",
targets: ["PillarboxAnalytics"]
),
.library(
name: "PillarboxCircumspect",
targets: ["PillarboxCircumspect"]
),
.library(
name: "PillarboxCore",
targets: ["PillarboxCore"]
),
.library(
name: "PillarboxCoreBusiness",
targets: ["PillarboxCoreBusiness"]
),
.library(
name: "PillarboxPlayer",
targets: ["PillarboxPlayer"]
),
.library(
name: "PillarboxMonitoring",
targets: ["PillarboxMonitoring"]
)
],
dependencies: [
.package(url: "https://github.com/comScore/Comscore-Swift-Package-Manager.git", .upToNextMinor(from: "6.14.0")),
.package(url: "https://github.com/CommandersAct/iOSV5.git", .upToNextMinor(from: "5.4.0")),
.package(url: "https://github.com/apple/swift-collections.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/krzysztofzablocki/Difference.git", exact: "1.0.1"),
.package(url: "https://github.com/Quick/Nimble.git", .upToNextMajor(from: "13.0.0"))
],
targets: [
.target(
name: "PillarboxAnalytics",
dependencies: [
.target(name: "PillarboxPlayer"),
.product(name: "ComScore", package: "Comscore-Swift-Package-Manager"),
.product(name: "TCCore", package: "iOSV5"),
.product(name: "TCServerSide", package: "iOSV5")
],
path: "Sources/Analytics",
resources: [
.process("Resources")
],
linkerSettings: [
.linkedFramework("AdSupport")
],
plugins: [
.plugin(name: "PackageInfoPlugin")
]
),
.target(
name: "PillarboxCore",
dependencies: [
.product(name: "DequeModule", package: "swift-collections")
],
path: "Sources/Core"
),
.target(
name: "PillarboxCoreBusiness",
dependencies: [
.target(name: "PillarboxAnalytics"),
.target(name: "PillarboxMonitoring")
],
path: "Sources/CoreBusiness",
resources: [
.process("Resources")
],
plugins: [
.plugin(name: "PackageInfoPlugin")
]
),
.target(
name: "PillarboxMonitoring",
dependencies: [
.target(name: "PillarboxPlayer")
],
path: "Sources/Monitoring"
),
.target(
name: "PillarboxCircumspect",
dependencies: [
.product(name: "Difference", package: "Difference"),
.product(name: "Nimble", package: "Nimble")
],
path: "Sources/Circumspect"
),
.target(
name: "PillarboxPlayer",
dependencies: [
.target(name: "PillarboxCore"),
.product(name: "DequeModule", package: "swift-collections"),
.product(name: "OrderedCollections", package: "swift-collections")
],
path: "Sources/Player",
resources: [
.process("Resources")
],
plugins: [
.plugin(name: "PackageInfoPlugin")
]
),
.target(
name: "PillarboxStreams",
path: "Sources/Streams",
resources: [
.process("Resources")
]
),
.binaryTarget(name: "PackageInfo", path: "Artifacts/PackageInfo.artifactbundle"),
.plugin(
name: "PackageInfoPlugin",
capability: .buildTool(),
dependencies: [
.target(name: "PackageInfo")
]
),
.testTarget(
name: "AnalyticsTests",
dependencies: [
.target(name: "PillarboxAnalytics"),
.target(name: "PillarboxCircumspect"),
.target(name: "PillarboxStreams")
]
),
.testTarget(
name: "CircumspectTests",
dependencies: [
.target(name: "PillarboxCircumspect")
]
),
.testTarget(
name: "CoreTests",
dependencies: [
.target(name: "PillarboxCircumspect"),
.target(name: "PillarboxCore")
]
),
.testTarget(
name: "CoreBusinessTests",
dependencies: [
.target(name: "PillarboxCircumspect"),
.target(name: "PillarboxCoreBusiness")
]
),
.testTarget(
name: "MonitoringTests",
dependencies: [
.target(name: "PillarboxCircumspect"),
.target(name: "PillarboxMonitoring"),
.target(name: "PillarboxStreams")
]
),
.testTarget(
name: "PlayerTests",
dependencies: [
.target(name: "PillarboxCircumspect"),
.target(name: "PillarboxPlayer"),
.target(name: "PillarboxStreams")
],
resources: [
.process("Resources")
]
)
]
)