4 Commits
0.2.1 ... 0.4.2

Author SHA1 Message Date
04dfb12052 Import network module on linux 2022-06-09 15:40:40 +02:00
f0589b9b90 Remove unused import 2022-06-09 13:58:58 +02:00
1131cb17c6 Update dependencies 2022-06-09 13:52:17 +02:00
c05643c6f1 Remove test files 2022-06-09 13:52:08 +02:00
3 changed files with 10 additions and 16 deletions

View File

@ -14,15 +14,15 @@ let package = Package(
targets: ["Push"]), targets: ["Push"]),
], ],
dependencies: [ dependencies: [
.package(url: "https://christophhagen.de/git/ch/Push-API.git", from: "0.7.2"), .package(url: "https://christophhagen.de/git/ch/Push-Definitions.git", from: "1.0.0"),
.package(url: "https://github.com/kylebrowning/APNSwift.git", from: "4.0.0"), .package(url: "https://github.com/swift-server-community/APNSwift.git", from: "4.0.0"),
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0") .package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0")
], ],
targets: [ targets: [
.target( .target(
name: "Push", name: "Push",
dependencies: [ dependencies: [
.product(name: "PushAPI", package: "Push-API"), .product(name: "PushMessageDefinitions", package: "Push-Definitions"),
.product(name: "Crypto", package: "swift-crypto") .product(name: "Crypto", package: "swift-crypto")
]), ]),
] ]

View File

@ -1,13 +1,18 @@
import Foundation import Foundation
import PushAPI import PushMessageDefinitions
import SwiftUI
// Use crypto replacement on Linux
#if canImport(CryptoKit) #if canImport(CryptoKit)
import CryptoKit import CryptoKit
#else #else
import Crypto import Crypto
#endif #endif
// Import network types on Linux
#if canImport(FoundationNetworking)
import FoundationNetworking
#endif
/** /**
A client to interact with a push server. A client to interact with a push server.
*/ */

View File

@ -1,11 +0,0 @@
import XCTest
@testable import Push_iOS
final class Push_iOSTests: XCTestCase {
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(Push_iOS().text, "Hello, World!")
}
}