-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
72 lines (70 loc) · 2.8 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
// swift-tools-version:5.2
import PackageDescription
let package = Package(
name: "aws-xray-sdk-swift",
products: [
// the main library including the recorder, the UDP emitter and a JSON encoder; no dependency on Foundation
.library(name: "AWSXRaySDK", targets: ["AWSXRaySDK"]),
// X-Ray recorder without emitter, no dependency on Foundation
.library(name: "AWSXRayRecorder", targets: ["AWSXRayRecorder"]),
// UDP emitter without JSON encoder, no dependency on Foundation
.library(name: "AWSXRayUDPEmitter", targets: ["AWSXRayUDPEmitter"]),
// for testing only, may have dependency on Foundation
.library(name: "AWSXRayTesting", targets: ["AWSXRayTesting"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", .upToNextMajor(from: "2.17.0")),
.package(url: "https://github.com/apple/swift-log.git", .upToNextMajor(from: "1.0.0")),
.package(name: "swift-baggage-context", url: "https://github.com/slashmo/gsoc-swift-baggage-context.git", .upToNextMinor(from: "0.2.0")),
.package(url: "https://github.com/fabianfett/pure-swift-json.git", .upToNextMinor(from: "0.4.0")),
],
targets: [
.target(
name: "AWSXRaySDK",
dependencies: [
.target(name: "AWSXRayRecorder"),
.target(name: "AWSXRayUDPEmitter"),
.product(name: "PureSwiftJSON", package: "pure-swift-json"),
]
),
.testTarget(
name: "AWSXRaySDKTests",
dependencies: [.target(name: "AWSXRaySDK")]
),
.target(
name: "AWSXRayRecorder",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "Logging", package: "swift-log"),
.product(name: "Baggage", package: "swift-baggage-context"),
]
),
.testTarget(
name: "AWSXRayRecorderTests",
dependencies: [.target(name: "AWSXRayRecorder")]
),
.target(
name: "AWSXRayUDPEmitter",
dependencies: [
.target(name: "AWSXRayRecorder"),
]
),
.testTarget(
name: "AWSXRayUDPEmitterTests",
dependencies: [.target(name: "AWSXRayUDPEmitter")]
),
.target(
name: "AWSXRayTesting",
dependencies: [
.target(name: "AWSXRayRecorder"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "Logging", package: "swift-log"),
]
),
.testTarget(
name: "AWSXRayTestingTests",
dependencies: [.target(name: "AWSXRayTesting")]
),
]
)