-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathPackage.swift
More file actions
56 lines (54 loc) · 1.72 KB
/
Copy pathPackage.swift
File metadata and controls
56 lines (54 loc) · 1.72 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
// swift-tools-version: 6.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "ITSClient",
platforms: [
.macOS(.v13),
.iOS(.v14)
],
products: [
.library(
name: "ITSCore",
targets: ["ITSCore"]),
.library(
name: "ITSMobility",
targets: ["ITSMobility"]),
],
dependencies: [
.package(url: "https://github.com/swift-server-community/mqtt-nio.git", from: "2.11.0"),
.package(url: "https://github.com/open-telemetry/opentelemetry-swift.git", from: "1.12.1")
],
targets: [
.target(
name: "ITSCore",
dependencies:
[
.product(name: "MQTTNIO", package: "mqtt-nio"),
.product(name: "OpenTelemetryProtocolExporterHTTP", package: "opentelemetry-swift"),
],
path: "swift/ITSClient/Sources/ITSCore",
),
.testTarget(
name: "ITSCoreTests",
dependencies: ["ITSCore", "ITSCommonTests"],
path: "swift/ITSClient/Tests/ITSCoreTests",
resources: [.copy("Data")],
),
.target(
name: "ITSMobility",
dependencies: ["ITSCore"],
path: "swift/ITSClient/Sources/ITSMobility",
),
.testTarget(
name: "ITSMobilityTests",
dependencies: ["ITSMobility", "ITSCommonTests"],
path: "swift/ITSClient/Tests/ITSMobilityTests",
resources: [.copy("Data")],
),
.target(
name: "ITSCommonTests",
path: "swift/ITSClient/Tests/ITSCommonTests"
),
]
)