This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
75 lines (72 loc) · 2.4 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
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "request-dl-nio",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6)
],
products: [
.library(
name: "RequestDL",
targets: ["RequestDL"]
)
],
dependencies: [
.package(
url: "https://github.com/swift-server/async-http-client",
from: "1.20.1"
),
.package(
url: "https://github.com/apple/swift-docc-plugin",
from: "1.3.0"
),
.package(
url: "https://github.com/apple/swift-nio",
from: "2.63.0"
),
.package(
url: "https://github.com/apple/swift-nio-extras",
from: "1.21.0"
),
.package(
url: "https://github.com/apple/swift-nio-ssl",
from: "2.26.0"
),
.package(
url: "https://github.com/apple/swift-log",
from: "1.5.4"
)
],
targets: [
.target(
name: "RequestDL",
dependencies: [
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOConcurrencyHelpers", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOHTTPCompression", package: "swift-nio-extras"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "Logging", package: "swift-log")
]
),
.testTarget(
name: "RequestDLTests",
dependencies: [
"RequestDL",
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "Logging", package: "swift-log")
],
resources: [.process("Resources")]
)
]
)