-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathPackage.swift
105 lines (103 loc) · 3.97 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
// swift-tools-version:5.2
//
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// A copy of the License is located at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
import PackageDescription
let package = Package(
name: "smoke-http",
platforms: [
.macOS(.v10_15), .iOS(.v13), .tvOS(.v13)
],
products: [
.library(
name: "SmokeHTTPClient",
targets: ["SmokeHTTPClient"]),
.library(
name: "_SmokeHTTPClientConcurrency",
targets: ["_SmokeHTTPClientConcurrency"]),
.library(
name: "QueryCoding",
targets: ["QueryCoding"]),
.library(
name: "HTTPHeadersCoding",
targets: ["HTTPHeadersCoding"]),
.library(
name: "HTTPPathCoding",
targets: ["HTTPPathCoding"]),
.library(
name: "ShapeCoding",
targets: ["ShapeCoding"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.14.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.6.4"),
.package(url: "https://github.com/apple/swift-distributed-tracing.git", from: "1.0.0"),
],
targets: [
.target(
name: "SmokeHTTPClient", dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "Metrics", package: "swift-metrics"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "Tracing", package: "swift-distributed-tracing"),
.target(name: "HTTPHeadersCoding"),
]),
.target(
name: "_SmokeHTTPClientConcurrency", dependencies: [
.target(name: "SmokeHTTPClient"),
]),
.target(
name: "QueryCoding", dependencies: [
.target(name: "ShapeCoding"),
]),
.target(
name: "HTTPHeadersCoding", dependencies: [
.target(name: "ShapeCoding"),
]),
.target(
name: "HTTPPathCoding", dependencies: [
.target(name: "ShapeCoding"),
]),
.target(
name: "ShapeCoding", dependencies: [
.product(name: "Logging", package: "swift-log"),
]),
.testTarget(
name: "SmokeHTTPClientTests", dependencies: [
.target(name: "SmokeHTTPClient"),
]),
.testTarget(
name: "ShapeCodingTests", dependencies: [
.target(name: "ShapeCoding"),
]),
.testTarget(
name: "QueryCodingTests", dependencies: [
.target(name: "QueryCoding"),
]),
.testTarget(
name: "HTTPHeadersCodingTests", dependencies: [
.target(name: "HTTPHeadersCoding"),
]),
.testTarget(
name: "HTTPPathCodingTests", dependencies: [
.target(name: "HTTPPathCoding"),
]),
]
)