-
-
Notifications
You must be signed in to change notification settings - Fork 105
/
Package.swift
78 lines (77 loc) · 2.79 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
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "apnswift",
platforms: [
.macOS(.v13),
.iOS(.v16),
.watchOS(.v9),
.tvOS(.v16),
],
products: [
.executable(name: "APNSExample", targets: ["APNSExample"]),
.library(name: "APNS", targets: ["APNS"]),
.library(name: "APNSCore", targets: ["APNSCore"]),
.library(name: "APNSURLSession", targets: ["APNSURLSession"]),
.library(name: "APNSTestServer", targets: ["APNSTestServer"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "3.0.0" ..< "5.0.0"),
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.19.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.42.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.6.0"),
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.9.0"),
],
targets: [
.executableTarget(
name: "APNSExample",
dependencies: [
.target(name: "APNSCore"),
.target(name: "APNS"),
.product(name: "Logging", package: "swift-log"),
]
),
.testTarget(
name: "APNSTests",
dependencies: [
.target(name: "APNSCore"),
.target(name: "APNS"),
]
),
.target(
name: "APNSCore",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
]
),
.target(
name: "APNS",
dependencies: [
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.target(name: "APNSCore"),
]
),
.target(
name: "APNSTestServer",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.product(name: "Crypto", package: "swift-crypto"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOPosix", package: "swift-nio"),
.product(name: "NIOSSL", package: "swift-nio-ssl"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOHTTP2", package: "swift-nio-http2"),
]
),
.target(
name: "APNSURLSession",
dependencies: [
.target(name: "APNSCore"),
]
),
],
swiftLanguageModes: [.v6]
)