Skip to content

Commit e304056

Browse files
authored
Update dependencies (#91)
1 parent 5be2962 commit e304056

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ let package = Package(
1313
dependencies: [
1414
.package(url: "https://github.com/apple/swift-nio.git", from: "2.10.1"),
1515
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.4.0"),
16-
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.6.0"),
16+
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.13.0"),
1717
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
18-
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0-rc"),
18+
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
1919
],
2020
targets: [
2121
.target(name: "APNSwiftExample", dependencies: [

Sources/APNSwift/APNSSwiftJWT/APNSwiftJWTError.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import Foundation
16+
1617
internal enum APNSwiftJWTError {
1718
case encodingFailed
1819
case tokenWasNotGeneratedCorrectly

Sources/APNSwift/APNSwiftConnection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public final class APNSwiftConnection: APNSwiftClient {
116116
sslHandler,
117117
WaitForTLSUpHandler(allDonePromise: connectionFullyUpPromise)
118118
]).flatMap {
119-
channel.configureHTTP2Pipeline(mode: .client) { channel, _ in
119+
channel.configureHTTP2Pipeline(mode: .client) { channel in
120120
let error = UnsupportedServerPushError()
121121
logger?.warning("Connection - failed \(error)")
122122
return channel.eventLoop.makeFailedFuture(error)
@@ -173,9 +173,9 @@ public final class APNSwiftConnection: APNSwiftClient {
173173
let logger = logger ?? self.configuration.logger
174174
logger?.debug("Send - starting up")
175175
let streamPromise = self.channel.eventLoop.makePromise(of: Channel.self)
176-
self.multiplexer.createStreamChannel(promise: streamPromise) { channel, streamID in
176+
self.multiplexer.createStreamChannel(promise: streamPromise) { channel in
177177
let handlers: [ChannelHandler] = [
178-
HTTP2ToHTTP1ClientCodec(streamID: streamID, httpProtocol: .https),
178+
HTTP2FramePayloadToHTTP1ClientCodec(httpProtocol: .https),
179179
APNSwiftRequestEncoder(
180180
deviceToken: deviceToken,
181181
configuration: self.configuration,

Sources/APNSwift/APNSwiftResponse.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import Foundation
1616
import NIO
1717
import NIOHTTP1
18+
1819
/// This structure is for managing the response from Apples push notification service.
1920
internal struct APNSwiftResponse: Equatable {
2021
public var header: HTTPResponseHead

0 commit comments

Comments
 (0)