Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
fde2062507 | |||
e4883f9b2b | |||
910f7e5f91 | |||
1092d776cd |
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ DerivedData/
|
||||
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
|
||||
.netrc
|
||||
Package.resolved
|
||||
.swiftpm/
|
||||
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
@ -1,4 +1,4 @@
|
||||
// swift-tools-version: 5.6
|
||||
// swift-tools-version: 5.5
|
||||
|
||||
import PackageDescription
|
||||
|
||||
@ -14,7 +14,8 @@ let package = Package(
|
||||
targets: ["Push"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "https://christophhagen.de/git/ch/Push-API.git", branch: "main"),
|
||||
.package(url: "https://christophhagen.de/git/ch/Push-API.git", from: "0.7.2"),
|
||||
.package(url: "https://github.com/kylebrowning/APNSwift.git", from: "4.0.0"),
|
||||
.package(url: "https://github.com/apple/swift-crypto.git", "1.0.0" ..< "3.0.0")
|
||||
],
|
||||
targets: [
|
||||
|
@ -76,7 +76,8 @@ public final class PushClient {
|
||||
*/
|
||||
public func getUnapprovedDevices(masterKey: String) async -> [DeviceRegistration]? {
|
||||
let hash = hash(masterKey)
|
||||
guard let data = await post(.listUnapprovedDevices, bodyData: hash) else {
|
||||
let request = AdminRequest(keyHash: hash, application: application)
|
||||
guard let data = await post(.listUnapprovedDevices, body: request) else {
|
||||
return nil
|
||||
}
|
||||
do {
|
||||
|
Reference in New Issue
Block a user