Skip to content

Commit add7882

Browse files
authored
Merge pull request #86 from appwrite/dev
feat: Apple SDK update for version 12.1.0
2 parents c6f0f39 + 2a8c82e commit add7882

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Add the package to your `Package.swift` dependencies:
3131

3232
```swift
3333
dependencies: [
34-
.package(url: "[email protected]:appwrite/sdk-for-apple.git", from: "12.0.0"),
34+
.package(url: "[email protected]:appwrite/sdk-for-apple.git", from: "12.1.0"),
3535
],
3636
```
3737

Sources/Appwrite/Client.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ open class Client {
2323
"x-sdk-name": "Apple",
2424
"x-sdk-platform": "client",
2525
"x-sdk-language": "apple",
26-
"x-sdk-version": "12.0.0",
26+
"x-sdk-version": "12.1.0",
2727
"x-appwrite-response-format": "1.8.0"
2828
]
2929

Sources/Appwrite/Query.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ public struct Query : Codable, CustomStringConvertible {
280280
).description
281281
}
282282

283+
public static func orderRandom() -> String {
284+
return Query(
285+
method: "orderRandom"
286+
).description
287+
}
288+
283289
public static func cursorBefore(_ id: String) -> String {
284290
return Query(
285291
method: "cursorBefore",

Sources/AppwriteModels/Execution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ open class Execution: Codable {
5555
/// HTTP request path and query.
5656
public let requestPath: String
5757

58-
/// HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
58+
/// HTTP request headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
5959
public let requestHeaders: [Headers]
6060

6161
/// HTTP response status code.

0 commit comments

Comments
 (0)