Skip to content

Commit 0221ed5

Browse files
committed
Add support for 1.7
1 parent d06ad64 commit 0221ed5

File tree

78 files changed

+2950
-286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+2950
-286
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
![Swift Package Manager](https://img.shields.io/github/v/release/appwrite/sdk-for-swift.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-swift.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.6.2-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.7.0-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
99

10-
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-swift/releases).**
10+
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-swift/releases).**
1111

1212
> This is the Swift SDK for integrating with Appwrite from your Swift server-side code. If you're looking for the Apple SDK you should check [appwrite/sdk-for-apple](https://github.com/appwrite/sdk-for-apple)
1313
@@ -33,7 +33,7 @@ Add the package to your `Package.swift` dependencies:
3333

3434
```swift
3535
dependencies: [
36-
.package(url: "[email protected]:appwrite/sdk-for-swift.git", from: "9.1.0-rc.1"),
36+
.package(url: "[email protected]:appwrite/sdk-for-swift.git", from: "9.2.0"),
3737
],
3838
```
3939

Sources/Appwrite/Client.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ open class Client {
2121
"x-sdk-name": "Swift",
2222
"x-sdk-platform": "server",
2323
"x-sdk-language": "swift",
24-
"x-sdk-version": "9.1.0-rc.1",
25-
"x-appwrite-response-format": "1.6.0"
24+
"x-sdk-version": "9.2.0",
25+
"x-appwrite-response-format": "1.7.0"
2626
]
2727

2828
internal var config: [String: String] = [:]

Sources/Appwrite/Services/Databases.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,6 @@ open class Databases: Service {
16601660
/// collection resource using either a [server
16611661
/// integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
16621662
/// API or directly from your database console.
1663-
///
16641663
///
16651664
/// @param String databaseId
16661665
/// @param String collectionId
@@ -1704,7 +1703,6 @@ open class Databases: Service {
17041703
/// collection resource using either a [server
17051704
/// integration](https://appwrite.io/docs/server/databases#databasesCreateCollection)
17061705
/// API or directly from your database console.
1707-
///
17081706
///
17091707
/// @param String databaseId
17101708
/// @param String collectionId
@@ -2155,6 +2153,7 @@ open class Databases: Service {
21552153
/// @param AppwriteEnums.IndexType type
21562154
/// @param [String] attributes
21572155
/// @param [String] orders
2156+
/// @param [Int] lengths
21582157
/// @throws Exception
21592158
/// @return array
21602159
///
@@ -2164,7 +2163,8 @@ open class Databases: Service {
21642163
key: String,
21652164
type: AppwriteEnums.IndexType,
21662165
attributes: [String],
2167-
orders: [String]? = nil
2166+
orders: [String]? = nil,
2167+
lengths: [Int]? = nil
21682168
) async throws -> AppwriteModels.Index {
21692169
let apiPath: String = "/databases/{databaseId}/collections/{collectionId}/indexes"
21702170
.replacingOccurrences(of: "{databaseId}", with: databaseId)
@@ -2174,7 +2174,8 @@ open class Databases: Service {
21742174
"key": key,
21752175
"type": type,
21762176
"attributes": attributes,
2177-
"orders": orders
2177+
"orders": orders,
2178+
"lengths": lengths
21782179
]
21792180

21802181
let apiHeaders: [String: String] = [

0 commit comments

Comments
 (0)