Skip to content

Commit 2f618b6

Browse files
committed
feat: update for 1.0.0-RC1
1 parent d090eba commit 2f618b6

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

README.md

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

3434
```swift
3535
dependencies: [
36-
.package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "0.7.0-RC1"),
36+
.package(url: "git@github.com:appwrite/sdk-for-swift.git", from: "1.0.0-RC1"),
3737
],
3838
```
3939

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": "Swift",
2424
"x-sdk-platform": "server",
2525
"x-sdk-language": "swift",
26-
"x-sdk-version": "0.7.0-RC1",
26+
"x-sdk-version": "1.0.0-RC1",
2727
"X-Appwrite-Response-Format": "1.0.0-RC1"
2828
]
2929

Sources/Appwrite/Services/Avatars.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ open class Avatars: Service {
232232
/// @param String name
233233
/// @param Int width
234234
/// @param Int height
235-
/// @param String color
236235
/// @param String background
237236
/// @throws Exception
238237
/// @return array
@@ -241,15 +240,13 @@ open class Avatars: Service {
241240
name: String? = nil,
242241
width: Int? = nil,
243242
height: Int? = nil,
244-
color: String? = nil,
245243
background: String? = nil
246244
) async throws -> ByteBuffer {
247245
let path: String = "/avatars/initials"
248246
let params: [String: Any?] = [
249247
"name": name,
250248
"width": width,
251249
"height": height,
252-
"color": color,
253250
"background": background,
254251
"project": client.config["project"],
255252
"key": client.config["key"]
@@ -522,7 +519,6 @@ open class Avatars: Service {
522519
/// @param String name
523520
/// @param Int width
524521
/// @param Int height
525-
/// @param String color
526522
/// @param String background
527523
/// @throws Exception
528524
/// @return array
@@ -532,7 +528,6 @@ open class Avatars: Service {
532528
name: String? = nil,
533529
width: Int? = nil,
534530
height: Int? = nil,
535-
color: String? = nil,
536531
background: String? = nil,
537532
completion: ((Result<ByteBuffer, AppwriteError>) -> Void)? = nil
538533
) {
@@ -542,7 +537,6 @@ open class Avatars: Service {
542537
name: name,
543538
width: width,
544539
height: height,
545-
color: color,
546540
background: background
547541
)
548542
completion?(.success(result))

0 commit comments

Comments
 (0)