diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/anthony.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/anthony.xcuserdatad/UserInterfaceState.xcuserstate index d8c9391..cd2791e 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/anthony.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/anthony.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Package.resolved b/Package.resolved index f83eaa6..86cd958 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/vapor/console.git", "state": { "branch": null, - "revision": "d6cf07af59ae63cd95c4b5f98cf1f25627750fd1", - "version": "3.1.0" + "revision": "74cfbea629d4aac34a97cead2447a6870af1950b", + "version": "3.1.1" } }, { @@ -15,8 +15,8 @@ "repositoryURL": "https://github.com/vapor/core.git", "state": { "branch": null, - "revision": "1794ff138bd669175a2528d27695028d7cb30471", - "version": "3.5.0" + "revision": "10d33362a47fab03a067e78fb0791341d9c634fa", + "version": "3.9.3" } }, { @@ -24,8 +24,8 @@ "repositoryURL": "https://github.com/vapor/crypto.git", "state": { "branch": null, - "revision": "bce9ac891c9b33fc045deda713e0d976d13b749a", - "version": "3.3.1" + "revision": "df8eb7d8ae51787b3a0628aa3975e67666da936c", + "version": "3.3.3" } }, { @@ -33,8 +33,8 @@ "repositoryURL": "https://github.com/vapor/database-kit.git", "state": { "branch": null, - "revision": "3557894af50914e134803a684b42a9ea6eefaea2", - "version": "1.3.2" + "revision": "8f352c8e66dab301ab9bfef912a01ce1361ba1e4", + "version": "1.3.3" } }, { @@ -51,8 +51,8 @@ "repositoryURL": "https://github.com/vapor/multipart.git", "state": { "branch": null, - "revision": "e57007c23a52b68e44ebdfc70cbe882a7c4f1ec3", - "version": "3.0.2" + "revision": "f063180d0b84832accd33194e06ed3c41f8609ac", + "version": "3.1.1" } }, { @@ -60,8 +60,8 @@ "repositoryURL": "https://github.com/vapor/routing.git", "state": { "branch": null, - "revision": "3219e328491b0853b8554c5a694add344d2c6cfb", - "version": "3.0.1" + "revision": "d76f339c9716785e5079af9d7075d28ff7da3d92", + "version": "3.1.0" } }, { @@ -69,8 +69,8 @@ "repositoryURL": "https://github.com/vapor/service.git", "state": { "branch": null, - "revision": "281a70b69783891900be31a9e70051b6fe19e146", - "version": "1.0.0" + "revision": "fa5b5de62bd68bcde9a69933f31319e46c7275fb", + "version": "1.0.2" } }, { @@ -114,8 +114,8 @@ "repositoryURL": "https://github.com/vapor/template-kit.git", "state": { "branch": null, - "revision": "aff2d6fc65bfd04579b0201b31a8d6720239c1cf", - "version": "1.1.1" + "revision": "51405c83e95e8adb09565278a5e9b959c605e56c", + "version": "1.4.0" } }, { @@ -123,8 +123,8 @@ "repositoryURL": "https://github.com/vapor/url-encoded-form.git", "state": { "branch": null, - "revision": "932024f363ee5ff59059cf7d67194a1c271d3d0c", - "version": "1.0.5" + "revision": "44999b47d88ca2e0c0b893599b3240e342ba39ff", + "version": "1.0.7" } }, { @@ -150,8 +150,8 @@ "repositoryURL": "https://github.com/vapor/websocket.git", "state": { "branch": null, - "revision": "21eb4773e25a8ff96fe347a31fe106900a69fa6a", - "version": "1.1.1" + "revision": "d85e5b6dce4d04065865f77385fc3324f98178f6", + "version": "1.1.2" } } ] diff --git a/Sources/OneSignal/OneSignalResult.swift b/Sources/OneSignal/OneSignalResult.swift index 2ea73e1..1666197 100644 --- a/Sources/OneSignal/OneSignalResult.swift +++ b/Sources/OneSignal/OneSignalResult.swift @@ -14,9 +14,10 @@ public enum OneSignalError: Swift.Error { case apiKeyNotSet case appIDNotSet case requestError(value: String) + case decodingError } -public enum OneSignalResult: ResponseCodable { +public enum OneSignalResult { case success case error(error: OneSignalError) case networkError(error: Error)