Skip to content

Commit a52f013

Browse files
committed
chore: regen
1 parent 49bf798 commit a52f013

39 files changed

+230
-914
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.8.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.7.4-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.8.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.7.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:9.0.0")
41+
implementation("io.appwrite:sdk-for-android:8.2.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>9.0.0</version>
52+
<version>8.2.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

β€Ždocs/examples/java/databases/create-document.mdβ€Ž

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

55
Client client = new Client(context)
66
.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
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
108

119
Databases databases = new Databases(client);
1210

β€Ždocs/examples/java/tables/list-rows.mdβ€Ž renamed to β€Ždocs/examples/java/databases/decrement-document-attribute.mdβ€Ž

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
3-
import io.appwrite.services.Tables;
3+
import io.appwrite.services.Databases;
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-
Tables tables = new Tables(client);
9+
Databases databases = new Databases(client);
1010

11-
tables.listRows(
11+
databases.decrementDocumentAttribute(
1212
"<DATABASE_ID>", // databaseId
13-
"<TABLE_ID>", // tableId
14-
listOf(), // queries (optional)
13+
"<COLLECTION_ID>", // collectionId
14+
"<DOCUMENT_ID>", // documentId
15+
"", // attribute
16+
0, // value (optional)
17+
0, // min (optional)
1518
new CoroutineCallback<>((result, error) -> {
1619
if (error != null) {
1720
error.printStackTrace();

β€Ždocs/examples/java/tables/update-row.mdβ€Ž renamed to β€Ždocs/examples/java/databases/increment-document-attribute.mdβ€Ž

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
3-
import io.appwrite.services.Tables;
3+
import io.appwrite.services.Databases;
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-
Tables tables = new Tables(client);
9+
Databases databases = new Databases(client);
1010

11-
tables.updateRow(
11+
databases.incrementDocumentAttribute(
1212
"<DATABASE_ID>", // databaseId
13-
"<TABLE_ID>", // tableId
14-
"<ROW_ID>", // rowId
15-
mapOf( "a" to "b" ), // data (optional)
16-
listOf("read("any")"), // permissions (optional)
13+
"<COLLECTION_ID>", // collectionId
14+
"<DOCUMENT_ID>", // documentId
15+
"", // attribute
16+
0, // value (optional)
17+
0, // max (optional)
1718
new CoroutineCallback<>((result, error) -> {
1819
if (error != null) {
1920
error.printStackTrace();

β€Ž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-
.setSession("") // The user session to authenticate with
8-
.setKey("") //
9-
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
7+
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
108

119
Databases databases = new Databases(client);
1210

1311
databases.upsertDocument(
1412
"<DATABASE_ID>", // databaseId
1513
"<COLLECTION_ID>", // collectionId
1614
"<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();

β€Ždocs/examples/java/tables/create-row.mdβ€Ž

Lines changed: 0 additions & 28 deletions
This file was deleted.

β€Ždocs/examples/java/tables/create-rows.mdβ€Ž

Lines changed: 0 additions & 25 deletions
This file was deleted.

β€Ždocs/examples/java/tables/delete-row.mdβ€Ž

Lines changed: 0 additions & 24 deletions
This file was deleted.

β€Ždocs/examples/java/tables/get-row.mdβ€Ž

Lines changed: 0 additions & 25 deletions
This file was deleted.

β€Ždocs/examples/java/tables/upsert-row.mdβ€Ž

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
Β (0)