Skip to content

Commit 2eb47e1

Browse files
committed
Merge remote-tracking branch 'origin/main' into dev
# Conflicts: # README.md # build.gradle # docs/examples/java/database/create-boolean-attribute.md # docs/examples/java/database/create-collection.md # docs/examples/java/database/create-document.md # docs/examples/java/database/create-email-attribute.md # docs/examples/java/database/create-enum-attribute.md # docs/examples/java/database/create-float-attribute.md # docs/examples/java/database/create-index.md # docs/examples/java/database/create-integer-attribute.md # docs/examples/java/database/create-ip-attribute.md # docs/examples/java/database/create-string-attribute.md # docs/examples/java/database/create-url-attribute.md # docs/examples/java/database/delete-attribute.md # docs/examples/java/database/delete-index.md # docs/examples/java/database/get-attribute.md # docs/examples/java/database/get-index.md # docs/examples/java/functions/create.md # docs/examples/java/functions/list-runtimes.md # docs/examples/java/storage/create-file.md # docs/examples/java/teams/create.md # docs/examples/java/users/create.md # docs/examples/kotlin/database/create-boolean-attribute.md # docs/examples/kotlin/database/create-collection.md # docs/examples/kotlin/database/create-document.md # docs/examples/kotlin/database/create-email-attribute.md # docs/examples/kotlin/database/create-enum-attribute.md # docs/examples/kotlin/database/create-float-attribute.md # docs/examples/kotlin/database/create-index.md # docs/examples/kotlin/database/create-integer-attribute.md # docs/examples/kotlin/database/create-ip-attribute.md # docs/examples/kotlin/database/create-string-attribute.md # docs/examples/kotlin/database/create-url-attribute.md # docs/examples/kotlin/database/delete-attribute.md # docs/examples/kotlin/database/delete-index.md # docs/examples/kotlin/database/get-attribute.md # docs/examples/kotlin/database/get-index.md # docs/examples/kotlin/database/list-indexes.md # docs/examples/kotlin/functions/create.md # docs/examples/kotlin/functions/list-runtimes.md # docs/examples/kotlin/health/get-queue-tasks.md # docs/examples/kotlin/storage/create-file.md # docs/examples/kotlin/teams/create.md # docs/examples/kotlin/users/create.md # src/main/kotlin/io/appwrite/Client.kt # src/main/kotlin/io/appwrite/Query.kt # src/main/kotlin/io/appwrite/models/AttributeBoolean.kt # src/main/kotlin/io/appwrite/models/AttributeEmail.kt # src/main/kotlin/io/appwrite/models/AttributeEnum.kt # src/main/kotlin/io/appwrite/models/AttributeFloat.kt # src/main/kotlin/io/appwrite/models/AttributeInteger.kt # src/main/kotlin/io/appwrite/models/AttributeIp.kt # src/main/kotlin/io/appwrite/models/AttributeString.kt # src/main/kotlin/io/appwrite/models/AttributeUrl.kt # src/main/kotlin/io/appwrite/models/Collection.kt # src/main/kotlin/io/appwrite/models/Function.kt # src/main/kotlin/io/appwrite/services/Account.kt # src/main/kotlin/io/appwrite/services/Database.kt # src/main/kotlin/io/appwrite/services/Functions.kt # src/main/kotlin/io/appwrite/services/Health.kt # src/main/kotlin/io/appwrite/services/Storage.kt # src/main/kotlin/io/appwrite/services/Teams.kt # src/main/kotlin/io/appwrite/services/Users.kt
2 parents 4435ff1 + 2fb2ac9 commit 2eb47e1

File tree

107 files changed

+2115
-431
lines changed

Some content is hidden

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

107 files changed

+2115
-431
lines changed

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2021 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2022 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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.12.0-blue.svg?style=flat-square)
6-
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite_io?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite_io)
5+
![Version](https://img.shields.io/badge/api%20version-0.12.1-blue.svg?style=flat-square)
6+
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

99
**This SDK is compatible with Appwrite server version 0.12.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
@@ -39,7 +39,7 @@ repositories {
3939
Next, add the dependency to your project's `build.gradle(.kts)` file:
4040

4141
```groovy
42-
implementation("io.appwrite:sdk-for-kotlin:0.2.0-SNAPSHOT")
42+
implementation("io.appwrite:sdk-for-kotlin:0.2.2")
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.2.0-SNAPSHOT</version>
53+
<version>0.2.2</version>
5454
</dependency>
5555
</dependencies>
5656
```
@@ -82,6 +82,7 @@ Once your SDK object is set, create any of the Appwrite service objects and choo
8282
```kotlin
8383
val users = Users(client)
8484
val response = users.create(
85+
user = "[USER_ID]",
8586
email = "[email protected]",
8687
password = "password",
8788
)
@@ -103,6 +104,7 @@ suspend fun main() {
103104

104105
val users = Users(client)
105106
val response = users.create(
107+
user = "[USER_ID]",
106108
email = "[email protected]",
107109
password = "password",
108110
)
@@ -122,6 +124,7 @@ suspend fun main() {
122124
val users = Users(client)
123125
try {
124126
val response = users.create(
127+
user = "[USER_ID]",
125128
email = "[email protected]",
126129
password = "password",
127130
)

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
ext {
77
PUBLISH_GROUP_ID = 'io.appwrite'
88
PUBLISH_ARTIFACT_ID = 'sdk-for-kotlin'
9-
PUBLISH_VERSION = '0.2.0-SNAPSHOT'
9+
PUBLISH_VERSION = '0.2.2'
1010
POM_URL = 'https://github.com/appwrite/sdk-for-kotlin'
1111
POM_SCM_URL = 'https://github.com/appwrite/sdk-for-kotlin'
1212
POM_ISSUE_URL = 'https://github.com/appwrite/sdk-for-kotlin/issues'

docs/examples/java/database/create-boolean-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void main() {
1010
Database database = new Database(client);
1111
database.createBooleanAttribute(
1212
collectionId = "[COLLECTION_ID]",
13-
attributeId = "",
13+
key = "",
1414
required = false,
1515
new Continuation<Response>() {
1616
@NotNull

docs/examples/java/database/create-collection.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.createCollection(
12-
collectionId = "",
12+
collectionId = "[COLLECTION_ID]",
1313
name = "[NAME]",
1414
permission = "document",
1515
read = ["role:all"],

docs/examples/java/database/create-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void main() {
1010
Database database = new Database(client);
1111
database.createDocument(
1212
collectionId = "[COLLECTION_ID]",
13-
documentId = "",
13+
documentId = "[DOCUMENT_ID]",
1414
data = mapOf( "a" to "b" ),
1515
new Continuation<Response>() {
1616
@NotNull

docs/examples/java/database/create-email-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void main() {
1010
Database database = new Database(client);
1111
database.createEmailAttribute(
1212
collectionId = "[COLLECTION_ID]",
13-
attributeId = "",
13+
key = "",
1414
required = false,
1515
new Continuation<Response>() {
1616
@NotNull

docs/examples/java/database/create-enum-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void main() {
1010
Database database = new Database(client);
1111
database.createEnumAttribute(
1212
collectionId = "[COLLECTION_ID]",
13-
attributeId = "",
13+
key = "",
1414
elements = listOf(),
1515
required = false,
1616
new Continuation<Response>() {

docs/examples/java/database/create-float-attribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void main() {
1010
Database database = new Database(client);
1111
database.createFloatAttribute(
1212
collectionId = "[COLLECTION_ID]",
13-
attributeId = "",
13+
key = "",
1414
required = false,
1515
new Continuation<Response>() {
1616
@NotNull

docs/examples/java/database/create-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public void main() {
1010
Database database = new Database(client);
1111
database.createIndex(
1212
collectionId = "[COLLECTION_ID]",
13-
indexId = "",
13+
key = "",
1414
type = "key",
1515
attributes = listOf(),
1616
new Continuation<Response>() {

0 commit comments

Comments
 (0)