File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
src/main/kotlin/io/appwrite Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ repositories {
3939Next, add the dependency to your project's ` build.gradle(.kts) ` file:
4040
4141``` groovy
42- implementation("io.appwrite:sdk-for-kotlin:0.7 .0-SNAPSHOT")
42+ implementation("io.appwrite:sdk-for-kotlin:1.0 .0-SNAPSHOT")
4343```
4444
4545### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
5050 <dependency >
5151 <groupId >io.appwrite</groupId >
5252 <artifactId >sdk-for-kotlin</artifactId >
53- <version >0.7 .0-SNAPSHOT</version >
53+ <version >1.0 .0-SNAPSHOT</version >
5454 </dependency >
5555</dependencies >
5656```
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class Client @JvmOverloads constructor(
6565 " x-sdk-name" to " Kotlin" ,
6666 " x-sdk-platform" to " server" ,
6767 " x-sdk-language" to " kotlin" ,
68- " x-sdk-version" to " 0.7 .0-SNAPSHOT" ,
68+ " x-sdk-version" to " 1.0 .0-SNAPSHOT" ,
6969 " x-appwrite-response-format" to " 1.0.0-RC1"
7070 )
7171 config = mutableMapOf ()
Original file line number Diff line number Diff line change @@ -236,7 +236,6 @@ class Avatars : Service {
236236 * @param name Full Name. When empty, current user name or email will be used. Max length: 128 chars.
237237 * @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
238238 * @param height Image height. Pass an integer between 0 to 2000. Defaults to 100.
239- * @param color Changes text color. By default a random color will be picked and stay will persistent to the given name.
240239 * @param background Changes background color. By default a random color will be picked and stay will persistent to the given name.
241240 * @return [ByteArray]
242241 */
@@ -246,15 +245,13 @@ class Avatars : Service {
246245 name : String? = null,
247246 width : Long? = null,
248247 height : Long? = null,
249- color : String? = null,
250248 background : String? = null
251249 ): ByteArray {
252250 val path = " /avatars/initials"
253251 val params = mutableMapOf<String , Any ?>(
254252 " name" to name,
255253 " width" to width,
256254 " height" to height,
257- " color" to color,
258255 " background" to background,
259256 " project" to client.config[" project" ],
260257 " key" to client.config[" key" ]
You can’t perform that action at this time.
0 commit comments