We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7186b4 + 2bd65f9 commit 5f1e9caCopy full SHA for 5f1e9ca
Package.swift
@@ -40,6 +40,8 @@ let package = Package(
40
.target(name: "APNSCore"),
41
.target(name: "APNS"),
42
.target(name: "APNSTestServer"),
43
+ .product(name: "Crypto", package: "swift-crypto"),
44
+ .product(name: "NIOPosix", package: "swift-nio"),
45
]
46
),
47
.target(
@@ -51,9 +53,14 @@ let package = Package(
51
53
52
54
name: "APNS",
55
dependencies: [
- .product(name: "Crypto", package: "swift-crypto"),
- .product(name: "AsyncHTTPClient", package: "async-http-client"),
56
57
+ .product(name: "AsyncHTTPClient", package: "async-http-client"),
58
59
+ .product(name: "NIOFoundationCompat", package: "swift-nio"),
60
+ .product(name: "NIOHTTP1", package: "swift-nio"),
61
62
+ .product(name: "NIOTLS", package: "swift-nio"),
63
+ .product(name: "NIOSSL", package: "swift-nio-ssl"),
64
65
66
Package@swift-5.10.swift
Sources/APNS/APNSBroadcastClient.swift
@@ -14,8 +14,13 @@
14
15
import APNSCore
16
import AsyncHTTPClient
17
+#if canImport(FoundationEssentials)
18
+import struct FoundationEssentials.Date
19
+import struct FoundationEssentials.UUID
20
+#else
21
import struct Foundation.Date
22
import struct Foundation.UUID
23
+#endif
24
import NIOConcurrencyHelpers
25
import NIOCore
26
import NIOHTTP1
Sources/APNS/APNSClient.swift
Sources/APNS/Coding/APNSJSONDecoder.swift
@@ -12,7 +12,11 @@
12
//
13
//===----------------------------------------------------------------------===//
+import FoundationEssentials
import Foundation
import NIOFoundationCompat
Sources/APNS/Coding/APNSJSONEncoder.swift
Sources/APNSCore/APNSError.swift
@@ -12,8 +12,13 @@
/// An error returned by APNs.
public struct APNSError: Error {
Sources/APNSCore/APNSRequest.swift
public struct APNSRequest<Message: APNSMessage> {
fileprivate final class _Storage {
Sources/APNSCore/APNSResponse.swift
/// The response of a successful APNs request.
public struct APNSResponse: Hashable, Sendable {
Sources/APNSCore/Alert/APNSAlertNotification.swift
/// An alert notification.
///
0 commit comments