Skip to content

Commit df86e2b

Browse files
Merge pull request #9 from appwrite/master
Appwrite 0.10 support
2 parents 88635b8 + e4bad87 commit df86e2b

File tree

114 files changed

+474
-231
lines changed

Some content is hidden

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

114 files changed

+474
-231
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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.9.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-0.10.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.9.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.10.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 {
3939
Next, add the dependency to your project's `build.gradle(.kts)` file:
4040

4141
```groovy
42-
implementation("io.appwrite:sdk-for-kotlin:0.0.1")
42+
implementation("io.appwrite:sdk-for-kotlin:0.1.0")
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.0.1</version>
53+
<version>0.1.0</version>
5454
</dependency>
5555
</dependencies>
5656
```
@@ -135,7 +135,7 @@ suspend fun main() {
135135

136136
### Learn more
137137

138-
You can use following resources to learn more and get help
138+
You can use the following resources to learn more and get help
139139

140140
- 🚀 [Getting Started Tutorial](https://appwrite.io/docs/getting-started-for-server)
141141
- 📜 [Appwrite Docs](https://appwrite.io/docs)

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
ext {
88
PUBLISH_GROUP_ID = 'io.appwrite'
99
PUBLISH_ARTIFACT_ID = 'sdk-for-kotlin'
10-
PUBLISH_VERSION = '0.0.1'
10+
PUBLISH_VERSION = '0.1.0'
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'

docs/examples/java/account/create-recovery.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.createRecovery(
12-
13-
"https://example.com"
14-
new Continuation<Object>() {
12+
email = "[email protected]",
13+
url = "https://example.com"
14+
new Continuation<Response>() {
1515
@NotNull
1616
@Override
1717
public CoroutineContext getContext() {

docs/examples/java/account/create-verification.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.createVerification(
12-
"https://example.com"
13-
new Continuation<Object>() {
12+
url = "https://example.com"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/account/delete-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.deleteSession(
12-
"[SESSION_ID]"
13-
new Continuation<Object>() {
12+
sessionId = "[SESSION_ID]"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/account/delete-sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void main() {
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

1010
Account account = new Account(client);
11-
account.deleteSessions(new Continuation<Object>() {
11+
account.deleteSessions(new Continuation<Response>() {
1212
@NotNull
1313
@Override
1414
public CoroutineContext getContext() {

docs/examples/java/account/delete.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void main() {
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

1010
Account account = new Account(client);
11-
account.delete(new Continuation<Object>() {
11+
account.delete(new Continuation<Response>() {
1212
@NotNull
1313
@Override
1414
public CoroutineContext getContext() {

docs/examples/java/account/get-logs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void main() {
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

1010
Account account = new Account(client);
11-
account.getLogs(new Continuation<Object>() {
11+
account.getLogs(new Continuation<Response>() {
1212
@NotNull
1313
@Override
1414
public CoroutineContext getContext() {

docs/examples/java/account/get-prefs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void main() {
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

1010
Account account = new Account(client);
11-
account.getPrefs(new Continuation<Object>() {
11+
account.getPrefs(new Continuation<Response>() {
1212
@NotNull
1313
@Override
1414
public CoroutineContext getContext() {

docs/examples/java/account/get-session.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.getSession(
12-
"[SESSION_ID]"
13-
new Continuation<Object>() {
12+
sessionId = "[SESSION_ID]"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/account/get-sessions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void main() {
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

1010
Account account = new Account(client);
11-
account.getSessions(new Continuation<Object>() {
11+
account.getSessions(new Continuation<Response>() {
1212
@NotNull
1313
@Override
1414
public CoroutineContext getContext() {

docs/examples/java/account/get.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public void main() {
88
.setJWT("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ..."); // Your secret JSON Web Token
99

1010
Account account = new Account(client);
11-
account.get(new Continuation<Object>() {
11+
account.get(new Continuation<Response>() {
1212
@NotNull
1313
@Override
1414
public CoroutineContext getContext() {

docs/examples/java/account/update-email.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.updateEmail(
12-
13-
"password"
14-
new Continuation<Object>() {
12+
email = "[email protected]",
13+
password = "password"
14+
new Continuation<Response>() {
1515
@NotNull
1616
@Override
1717
public CoroutineContext getContext() {

docs/examples/java/account/update-name.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.updateName(
12-
"[NAME]"
13-
new Continuation<Object>() {
12+
name = "[NAME]"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/account/update-password.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.updatePassword(
12-
"password",
13-
new Continuation<Object>() {
12+
password = "password",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/account/update-prefs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.updatePrefs(
12-
mapOf( "a" to "b" )
13-
new Continuation<Object>() {
12+
prefs = mapOf( "a" to "b" )
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/account/update-recovery.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.updateRecovery(
12-
"[USER_ID]",
13-
"[SECRET]",
14-
"password",
15-
"password"
16-
new Continuation<Object>() {
12+
userId = "[USER_ID]",
13+
secret = "[SECRET]",
14+
password = "password",
15+
passwordAgain = "password"
16+
new Continuation<Response>() {
1717
@NotNull
1818
@Override
1919
public CoroutineContext getContext() {

docs/examples/java/account/update-verification.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public void main() {
99

1010
Account account = new Account(client);
1111
account.updateVerification(
12-
"[USER_ID]",
13-
"[SECRET]"
14-
new Continuation<Object>() {
12+
userId = "[USER_ID]",
13+
secret = "[SECRET]"
14+
new Continuation<Response>() {
1515
@NotNull
1616
@Override
1717
public CoroutineContext getContext() {

docs/examples/java/avatars/get-browser.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getBrowser(
12-
"aa",
13-
new Continuation<Object>() {
12+
code = "aa",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/avatars/get-credit-card.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getCreditCard(
12-
"amex",
13-
new Continuation<Object>() {
12+
code = "amex",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/avatars/get-favicon.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getFavicon(
12-
"https://example.com"
13-
new Continuation<Object>() {
12+
url = "https://example.com"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/avatars/get-flag.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getFlag(
12-
"af",
13-
new Continuation<Object>() {
12+
code = "af",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/avatars/get-image.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getImage(
12-
"https://example.com",
13-
new Continuation<Object>() {
12+
url = "https://example.com",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

docs/examples/java/avatars/get-initials.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getInitials(
12-
new Continuation<Object>() {
12+
new Continuation<Response>() {
1313
@NotNull
1414
@Override
1515
public CoroutineContext getContext() {

docs/examples/java/avatars/get-q-r.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Avatars avatars = new Avatars(client);
1111
avatars.getQR(
12-
"[TEXT]",
13-
new Continuation<Object>() {
12+
text = "[TEXT]",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.createCollection(
12-
"[NAME]",
13-
listOf(),
14-
listOf(),
15-
listOf()
16-
new Continuation<Object>() {
12+
name = "[NAME]",
13+
read = listOf(),
14+
write = listOf(),
15+
rules = listOf()
16+
new Continuation<Response>() {
1717
@NotNull
1818
@Override
1919
public CoroutineContext getContext() {

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.createDocument(
12-
"[COLLECTION_ID]",
13-
mapOf( "a" to "b" ),
14-
new Continuation<Object>() {
12+
collectionId = "[COLLECTION_ID]",
13+
data = mapOf( "a" to "b" ),
14+
new Continuation<Response>() {
1515
@NotNull
1616
@Override
1717
public CoroutineContext getContext() {

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.deleteCollection(
12-
"[COLLECTION_ID]"
13-
new Continuation<Object>() {
12+
collectionId = "[COLLECTION_ID]"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.deleteDocument(
12-
"[COLLECTION_ID]",
13-
"[DOCUMENT_ID]"
14-
new Continuation<Object>() {
12+
collectionId = "[COLLECTION_ID]",
13+
documentId = "[DOCUMENT_ID]"
14+
new Continuation<Response>() {
1515
@NotNull
1616
@Override
1717
public CoroutineContext getContext() {

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.getCollection(
12-
"[COLLECTION_ID]"
13-
new Continuation<Object>() {
12+
collectionId = "[COLLECTION_ID]"
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.getDocument(
12-
"[COLLECTION_ID]",
13-
"[DOCUMENT_ID]"
14-
new Continuation<Object>() {
12+
collectionId = "[COLLECTION_ID]",
13+
documentId = "[DOCUMENT_ID]"
14+
new Continuation<Response>() {
1515
@NotNull
1616
@Override
1717
public CoroutineContext getContext() {

docs/examples/java/database/list-collections.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.listCollections(
12-
new Continuation<Object>() {
12+
new Continuation<Response>() {
1313
@NotNull
1414
@Override
1515
public CoroutineContext getContext() {

docs/examples/java/database/list-documents.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public void main() {
99

1010
Database database = new Database(client);
1111
database.listDocuments(
12-
"[COLLECTION_ID]",
13-
new Continuation<Object>() {
12+
collectionId = "[COLLECTION_ID]",
13+
new Continuation<Response>() {
1414
@NotNull
1515
@Override
1616
public CoroutineContext getContext() {

0 commit comments

Comments
 (0)