File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed
src/main/kotlin/io/appwrite Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 22
33![ Maven Central] ( https://img.shields.io/maven-central/v/io.appwrite/sdk-for-kotlin.svg?color=green&style=flat-square )
44![ License] ( https://img.shields.io/github/license/appwrite/sdk-for-kotlin.svg?style=flat-square )
5- ![ Version] ( https://img.shields.io/badge/api%20version-0.10 .0-blue.svg?style=flat-square )
5+ ![ Version] ( https://img.shields.io/badge/api%20version-0.11 .0-blue.svg?style=flat-square )
66[ ![ Twitter Account] ( https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square )] ( https://twitter.com/appwrite_io )
77[ ![ Discord] ( https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square )] ( https://appwrite.io/discord )
88
9- ** This SDK is compatible with Appwrite server version 0.10 .x. For older versions, please check [ previous releases] ( https://github.com/appwrite/sdk-for-kotlin/releases ) .**
9+ ** This SDK is compatible with Appwrite server version 0.11 .x. For older versions, please check [ previous releases] ( https://github.com/appwrite/sdk-for-kotlin/releases ) .**
1010
1111 > This is the Kotlin SDK for integrating with Appwrite from your Kotlin server-side code. If you're looking for the Android SDK you should check [ appwrite/sdk-for-android] ( https://github.com/appwrite/sdk-for-android )
1212
@@ -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.1.0 ")
42+ implementation("io.appwrite:sdk-for-kotlin:0.1.1 ")
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.1.0 </version >
53+ <version >0.1.1 </version >
5454 </dependency >
5555</dependencies >
5656```
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ plugins {
77ext {
88 PUBLISH_GROUP_ID = ' io.appwrite'
99 PUBLISH_ARTIFACT_ID = ' sdk-for-kotlin'
10- PUBLISH_VERSION = ' 0.1.0 '
10+ PUBLISH_VERSION = ' 0.1.1 '
1111 POM_URL = ' https://github.com/appwrite/sdk-for-kotlin'
1212 POM_SCM_URL = ' https://github.com/appwrite/sdk-for-kotlin'
1313 POM_ISSUE_URL = ' https://github.com/appwrite/sdk-for-kotlin/issues'
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ class Client @JvmOverloads constructor(
4747 init {
4848 headers = mutableMapOf (
4949 " content-type" to " application/json" ,
50- " x-sdk-version" to " appwrite:kotlin:0.1.0 " ,
51- " x-appwrite-response-format" to " 0.10 .0"
50+ " x-sdk-version" to " appwrite:kotlin:0.1.1 " ,
51+ " x-appwrite-response-format" to " 0.11 .0"
5252 )
5353 config = mutableMapOf ()
5454
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ class Database(private val client: Client) : BaseService(client) {
222222 * directly from your database console.
223223 *
224224 * @param collectionId
225- * @param data
225+ * @param xdata
226226 * @param read
227227 * @param write
228228 * @param parentDocument
@@ -234,7 +234,7 @@ class Database(private val client: Client) : BaseService(client) {
234234 @Throws(AppwriteException ::class )
235235 suspend fun createDocument (
236236 collectionId : String ,
237- data : Any ,
237+ xdata : Any ,
238238 read : List <Any >? = null,
239239 write : List <Any >? = null,
240240 parentDocument : String? = null,
@@ -243,7 +243,7 @@ class Database(private val client: Client) : BaseService(client) {
243243 ): Response {
244244 val path = " /database/collections/{collectionId}/documents" .replace(" {collectionId}" , collectionId)
245245 val params = mapOf<String , Any ?>(
246- " data" to data ,
246+ " data" to xdata ,
247247 " read" to read,
248248 " write" to write,
249249 " parentDocument" to parentDocument,
@@ -293,7 +293,7 @@ class Database(private val client: Client) : BaseService(client) {
293293 *
294294 * @param collectionId
295295 * @param documentId
296- * @param data
296+ * @param xdata
297297 * @param read
298298 * @param write
299299 * @return [Response]
@@ -303,13 +303,13 @@ class Database(private val client: Client) : BaseService(client) {
303303 suspend fun updateDocument (
304304 collectionId : String ,
305305 documentId : String ,
306- data : Any ,
306+ xdata : Any ,
307307 read : List <Any >? = null,
308308 write : List <Any >? = null
309309 ): Response {
310310 val path = " /database/collections/{collectionId}/documents/{documentId}" .replace(" {collectionId}" , collectionId).replace(" {documentId}" , documentId)
311311 val params = mapOf<String , Any ?>(
312- " data" to data ,
312+ " data" to xdata ,
313313 " read" to read,
314314 " write" to write
315315 )
Original file line number Diff line number Diff line change @@ -226,18 +226,18 @@ class Functions(private val client: Client) : BaseService(client) {
226226 * function execution process will start asynchronously.
227227 *
228228 * @param functionId
229- * @param data
229+ * @param xdata
230230 * @return [Response]
231231 */
232232 @JvmOverloads
233233 @Throws(AppwriteException ::class )
234234 suspend fun createExecution (
235235 functionId : String ,
236- data : String? = null
236+ xdata : String? = null
237237 ): Response {
238238 val path = " /functions/{functionId}/executions" .replace(" {functionId}" , functionId)
239239 val params = mapOf<String , Any ?>(
240- " data" to data
240+ " data" to xdata
241241 )
242242
243243 val headers = mapOf (
Original file line number Diff line number Diff line change @@ -230,9 +230,9 @@ class Teams(private val client: Client) : BaseService(client) {
230230 val path = " /teams/{teamId}/memberships" .replace(" {teamId}" , teamId)
231231 val params = mapOf<String , Any ?>(
232232 " email" to email,
233- " name" to name,
234233 " roles" to roles,
235- " url" to url
234+ " url" to url,
235+ " name" to name
236236 )
237237
238238 val headers = mapOf (
You can’t perform that action at this time.
0 commit comments