Skip to content

Commit ec4ba5b

Browse files
authored
Merge pull request #95 from appwrite/dev
feat: Android SDK update for version 11.3.0
2 parents fa10b91 + 9668122 commit ec4ba5b

Some content is hidden

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

45 files changed

+245
-27
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## 11.3.0
4+
5+
* Add `total` parameter to list queries allowing skipping counting rows in a table for improved performance
6+
* Add `Operator` class for atomic modification of rows via update, bulk update, upsert, and bulk upsert operations
7+
38
## 11.2.1
49

510
* Add transaction support for Databases and TablesDB

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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:11.2.1")
41+
implementation("io.appwrite:sdk-for-android:11.3.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>11.2.1</version>
52+
<version>11.3.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

docs/examples/java/account/list-identities.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Account account = new Account(client);
1010

1111
account.listIdentities(
1212
listOf(), // queries (optional)
13+
false, // total (optional)
1314
new CoroutineCallback<>((result, error) -> {
1415
if (error != null) {
1516
error.printStackTrace();

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Account account = new Account(client);
1010

1111
account.listLogs(
1212
listOf(), // queries (optional)
13+
false, // total (optional)
1314
new CoroutineCallback<>((result, error) -> {
1415
if (error != null) {
1516
error.printStackTrace();

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
4+
import io.appwrite.Permission;
5+
import io.appwrite.Role;
46

57
Client client = new Client(context)
68
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -19,7 +21,7 @@ databases.createDocument(
1921
"age" to 30,
2022
"isAdmin" to false
2123
), // data
22-
listOf("read("any")"), // permissions (optional)
24+
listOf(Permission.read(Role.any())), // permissions (optional)
2325
"<TRANSACTION_ID>", // transactionId (optional)
2426
new CoroutineCallback<>((result, error) -> {
2527
if (error != null) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ databases.listDocuments(
1313
"<COLLECTION_ID>", // collectionId
1414
listOf(), // queries (optional)
1515
"<TRANSACTION_ID>", // transactionId (optional)
16+
false, // total (optional)
1617
new CoroutineCallback<>((result, error) -> {
1718
if (error != null) {
1819
error.printStackTrace();

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
4+
import io.appwrite.Permission;
5+
import io.appwrite.Role;
46

57
Client client = new Client(context)
68
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -13,7 +15,7 @@ databases.updateDocument(
1315
"<COLLECTION_ID>", // collectionId
1416
"<DOCUMENT_ID>", // documentId
1517
mapOf( "a" to "b" ), // data (optional)
16-
listOf("read("any")"), // permissions (optional)
18+
listOf(Permission.read(Role.any())), // permissions (optional)
1719
"<TRANSACTION_ID>", // transactionId (optional)
1820
new CoroutineCallback<>((result, error) -> {
1921
if (error != null) {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
4+
import io.appwrite.Permission;
5+
import io.appwrite.Role;
46

57
Client client = new Client(context)
68
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -13,7 +15,7 @@ databases.upsertDocument(
1315
"<COLLECTION_ID>", // collectionId
1416
"<DOCUMENT_ID>", // documentId
1517
mapOf( "a" to "b" ), // data
16-
listOf("read("any")"), // permissions (optional)
18+
listOf(Permission.read(Role.any())), // permissions (optional)
1719
"<TRANSACTION_ID>", // transactionId (optional)
1820
new CoroutineCallback<>((result, error) -> {
1921
if (error != null) {

docs/examples/java/functions/list-executions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Functions functions = new Functions(client);
1111
functions.listExecutions(
1212
"<FUNCTION_ID>", // functionId
1313
listOf(), // queries (optional)
14+
false, // total (optional)
1415
new CoroutineCallback<>((result, error) -> {
1516
if (error != null) {
1617
error.printStackTrace();

docs/examples/java/storage/create-file.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.models.InputFile;
44
import io.appwrite.services.Storage;
5+
import io.appwrite.Permission;
6+
import io.appwrite.Role;
57

68
Client client = new Client(context)
79
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -13,7 +15,7 @@ storage.createFile(
1315
"<BUCKET_ID>", // bucketId
1416
"<FILE_ID>", // fileId
1517
InputFile.fromPath("file.png"), // file
16-
listOf("read("any")"), // permissions (optional)
18+
listOf(Permission.read(Role.any())), // permissions (optional)
1719
new CoroutineCallback<>((result, error) -> {
1820
if (error != null) {
1921
error.printStackTrace();

0 commit comments

Comments
 (0)