Skip to content

Commit 5a9c3b8

Browse files
authored
Updating project config/names. (#4)
1 parent 27ea8f9 commit 5a9c3b8

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
/.build
33
/Packages
44
/*.xcodeproj
5-
DerivedData
65
Package.resolved
6+
DerivedData
7+
.swiftpm
8+

Package.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ let package = Package(
77
.library(name: "APNSKit", targets: ["APNSKit"]),
88
],
99
dependencies: [
10-
.package(url: "https://github.com/kylebrowning/swift-nio-apns.git", .branch("master")),
11-
.package(url: "https://github.com/vapor/nio-kit.git", .branch("master")),
10+
.package(url: "https://github.com/kylebrowning/APNSwift.git", from: "1.3.0"),
11+
.package(url: "https://github.com/vapor/async-kit.git", from: "1.0.0-alpha.1"),
1212
],
1313
targets: [
14-
.target(name: "APNSKit", dependencies: ["NIOKit", "NIOAPNS"]),
14+
.target(name: "APNSKit", dependencies: ["AsyncKit", "APNSwift"]),
1515
.testTarget(name: "APNSKitTests", dependencies: ["APNSKit"]),
1616
]
1717
)

Sources/APNSKit/Exported.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
// Created by Kyle Browning on 3/23/19.
66
//
77

8-
@_exported import NIOKit
9-
@_exported import NIOAPNS
8+
@_exported import AsyncKit
9+
@_exported import APNSwift

Sources/APNSKit/apns_kit.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
public final class APNSConnectionSource: ConnectionPoolSource {
22
public let eventLoop: EventLoop
3-
private let configuration: APNSConfiguration
3+
private let configuration: APNSwiftConfiguration
44

5-
public init(configuration: APNSConfiguration, on eventLoop: EventLoop) {
5+
public init(configuration: APNSwiftConfiguration, on eventLoop: EventLoop) {
66
self.eventLoop = eventLoop
77
self.configuration = configuration
88
}
9-
public func makeConnection() -> EventLoopFuture<APNSConnection> {
10-
return APNSConnection.connect(configuration: self.configuration, on: self.eventLoop)
9+
public func makeConnection() -> EventLoopFuture<APNSwiftConnection> {
10+
return APNSwiftConnection.connect(configuration: self.configuration, on: self.eventLoop)
1111
}
1212
}
13-
extension APNSConnection: ConnectionPoolItem {
13+
extension APNSwiftConnection: ConnectionPoolItem {
1414
public var isClosed: Bool {
1515
// TODO: implement this.
1616
return false

0 commit comments

Comments
 (0)