Merge pull request #21 from appwrite/dev

feat: update for 1.0.0-RC1
This commit is contained in:
Christy Jacob
2022-09-06 20:48:08 +04:00
committed by GitHub
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:
```swift
dependencies: [
.package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "1.0.0-RC1"),
.package(url: "git@github.com:appwrite/sdk-for-apple.git", from: "1.0.0-RC2"),
],
```
+1 -1
View File
@@ -23,7 +23,7 @@ open class Client {
"x-sdk-name": "Apple",
"x-sdk-platform": "client",
"x-sdk-language": "swiftclient",
"x-sdk-version": "1.0.0-RC1",
"x-sdk-version": "1.0.0-RC2",
"X-Appwrite-Response-Format": "1.0.0-RC1"
]
+2 -2
View File
@@ -24,13 +24,13 @@ public class RealtimeCallback {
public class RealtimeResponseEvent {
public let events: [String]?
public let channels: [String]?
public let timestamp: Int64?
public let timestamp: String?
public var payload: [String: Any]?
init(
events: [String],
channels: [String],
timestamp: Int64,
timestamp: String,
payload: [String: Any]
) {
self.events = events
+1 -1
View File
@@ -209,7 +209,7 @@ extension Realtime: WebSocketClientDelegate {
let response = RealtimeResponseEvent(
events: events,
channels: channels,
timestamp: data["timestamp"] as! Int64,
timestamp: data["timestamp"] as! String,
payload: payload
)
subscription.value.callback(response)