Skip to content

Commit 8e9f560

Browse files
authored
Merge pull request #61 from appwrite/dev
feat: Kotlin SDK update for version 12.3.0
2 parents f0be31e + bbfd3c4 commit 8e9f560

File tree

126 files changed

+685
-78
lines changed

Some content is hidden

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

126 files changed

+685
-78
lines changed

CHANGELOG.md

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

3+
## 12.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+
* Add `createResendProvider` and `updateResendProvider` methods to `Messaging` service
8+
39
## 12.2.1
410

511
* Add transaction support for Databases and TablesDB

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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:12.2.1")
42+
implementation("io.appwrite:sdk-for-kotlin:12.3.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>12.2.1</version>
53+
<version>12.3.0</version>
5454
</dependency>
5555
</dependencies>
5656
```

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

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

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

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

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

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

docs/examples/java/databases/create-collection.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()
68
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -13,7 +15,7 @@ databases.createCollection(
1315
"<DATABASE_ID>", // databaseId
1416
"<COLLECTION_ID>", // collectionId
1517
"<NAME>", // name
16-
listOf("read("any")"), // permissions (optional)
18+
listOf(Permission.read(Role.any())), // permissions (optional)
1719
false, // documentSecurity (optional)
1820
false, // enabled (optional)
1921
new CoroutineCallback<>((result, error) -> {

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()
68
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -20,7 +22,7 @@ databases.createDocument(
2022
"age" to 30,
2123
"isAdmin" to false
2224
), // data
23-
listOf("read("any")"), // permissions (optional)
25+
listOf(Permission.read(Role.any())), // permissions (optional)
2426
"<TRANSACTION_ID>", // transactionId (optional)
2527
new CoroutineCallback<>((result, error) -> {
2628
if (error != null) {

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

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)