Skip to content

Commit 49bf798

Browse files
committed
chore: regenerate
1 parent 39fdc6e commit 49bf798

39 files changed

+908
-230
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
![Maven Central](https://img.shields.io/maven-central/v/io.appwrite/sdk-for-android.svg?color=green&style=flat-square)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-android.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.7.4-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.8.0-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
99

10-
**This SDK is compatible with Appwrite server version 1.7.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-android/releases).**
10+
**This SDK is compatible with Appwrite server version 1.8.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-android/releases).**
1111

1212
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Android SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1313

@@ -38,7 +38,7 @@ repositories {
3838
Next, add the dependency to your project's `build.gradle(.kts)` file:
3939

4040
```groovy
41-
implementation("io.appwrite:sdk-for-android:8.2.0")
41+
implementation("io.appwrite:sdk-for-android:9.0.0")
4242
```
4343

4444
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
4949
<dependency>
5050
<groupId>io.appwrite</groupId>
5151
<artifactId>sdk-for-android</artifactId>
52-
<version>8.2.0</version>
52+
<version>9.0.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client(context)
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setAdmin("") //
87
.setSession("") // The user session to authenticate with
98
.setKey("") //
109
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token

docs/examples/java/databases/upsert-document.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client(context)
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
7+
.setSession("") // The user session to authenticate with
8+
.setKey("") //
9+
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
810

911
Databases databases = new Databases(client);
1012

1113
databases.upsertDocument(
1214
"<DATABASE_ID>", // databaseId
1315
"<COLLECTION_ID>", // collectionId
1416
"<DOCUMENT_ID>", // documentId
15-
mapOf( "a" to "b" ), // data
16-
listOf("read("any")"), // permissions (optional)
1717
new CoroutineCallback<>((result, error) -> {
1818
if (error != null) {
1919
error.printStackTrace();
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setSession("") // The user session to authenticate with
8+
.setKey("") //
9+
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
10+
11+
Tables tables = new Tables(client);
12+
13+
tables.createRow(
14+
"<DATABASE_ID>", // databaseId
15+
"<TABLE_ID>", // tableId
16+
"<ROW_ID>", // rowId
17+
mapOf( "a" to "b" ), // data
18+
listOf("read("any")"), // permissions (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
Log.d("Appwrite", result.toString());
26+
})
27+
);
28+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setAdmin("") //
8+
.setKey(""); //
9+
10+
Tables tables = new Tables(client);
11+
12+
tables.createRows(
13+
"<DATABASE_ID>", // databaseId
14+
"<TABLE_ID>", // tableId
15+
listOf(), // rows
16+
new CoroutineCallback<>((result, error) -> {
17+
if (error != null) {
18+
error.printStackTrace();
19+
return;
20+
}
21+
22+
Log.d("Appwrite", result.toString());
23+
})
24+
);
25+

docs/examples/java/databases/decrement-document-attribute.md renamed to docs/examples/java/tables/delete-row.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
3-
import io.appwrite.services.Databases;
3+
import io.appwrite.services.Tables;
44

55
Client client = new Client(context)
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
88

9-
Databases databases = new Databases(client);
9+
Tables tables = new Tables(client);
1010

11-
databases.decrementDocumentAttribute(
11+
tables.deleteRow(
1212
"<DATABASE_ID>", // databaseId
13-
"<COLLECTION_ID>", // collectionId
14-
"<DOCUMENT_ID>", // documentId
15-
"", // attribute
16-
0, // value (optional)
17-
0, // min (optional)
13+
"<TABLE_ID>", // tableId
14+
"<ROW_ID>", // rowId
1815
new CoroutineCallback<>((result, error) -> {
1916
if (error != null) {
2017
error.printStackTrace();

docs/examples/java/databases/increment-document-attribute.md renamed to docs/examples/java/tables/get-row.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
3-
import io.appwrite.services.Databases;
3+
import io.appwrite.services.Tables;
44

55
Client client = new Client(context)
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
77
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
88

9-
Databases databases = new Databases(client);
9+
Tables tables = new Tables(client);
1010

11-
databases.incrementDocumentAttribute(
11+
tables.getRow(
1212
"<DATABASE_ID>", // databaseId
13-
"<COLLECTION_ID>", // collectionId
14-
"<DOCUMENT_ID>", // documentId
15-
"", // attribute
16-
0, // value (optional)
17-
0, // max (optional)
13+
"<TABLE_ID>", // tableId
14+
"<ROW_ID>", // rowId
15+
listOf(), // queries (optional)
1816
new CoroutineCallback<>((result, error) -> {
1917
if (error != null) {
2018
error.printStackTrace();
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Tables tables = new Tables(client);
10+
11+
tables.listRows(
12+
"<DATABASE_ID>", // databaseId
13+
"<TABLE_ID>", // tableId
14+
listOf(), // queries (optional)
15+
new CoroutineCallback<>((result, error) -> {
16+
if (error != null) {
17+
error.printStackTrace();
18+
return;
19+
}
20+
21+
Log.d("Appwrite", result.toString());
22+
})
23+
);
24+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
8+
9+
Tables tables = new Tables(client);
10+
11+
tables.updateRow(
12+
"<DATABASE_ID>", // databaseId
13+
"<TABLE_ID>", // tableId
14+
"<ROW_ID>", // rowId
15+
mapOf( "a" to "b" ), // data (optional)
16+
listOf("read("any")"), // permissions (optional)
17+
new CoroutineCallback<>((result, error) -> {
18+
if (error != null) {
19+
error.printStackTrace();
20+
return;
21+
}
22+
23+
Log.d("Appwrite", result.toString());
24+
})
25+
);
26+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import io.appwrite.Client;
2+
import io.appwrite.coroutines.CoroutineCallback;
3+
import io.appwrite.services.Tables;
4+
5+
Client client = new Client(context)
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setSession("") // The user session to authenticate with
8+
.setKey("") //
9+
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
10+
11+
Tables tables = new Tables(client);
12+
13+
tables.upsertRow(
14+
"<DATABASE_ID>", // databaseId
15+
"<TABLE_ID>", // tableId
16+
"<ROW_ID>", // rowId
17+
new CoroutineCallback<>((result, error) -> {
18+
if (error != null) {
19+
error.printStackTrace();
20+
return;
21+
}
22+
23+
Log.d("Appwrite", result.toString());
24+
})
25+
);
26+

0 commit comments

Comments
 (0)