Skip to content

Commit 66a8cba

Browse files
authored
Merge pull request #66 from appwrite/dev
2 parents 188f596 + 0a604d3 commit 66a8cba

File tree

136 files changed

+2935
-165
lines changed

Some content is hidden

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

136 files changed

+2935
-165
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 14.0.0
4+
5+
* Add array-based enum parameters (e.g., `permissions: List<BrowserPermission>`).
6+
* Breaking change: `Output` enum has been removed; use `ImageFormat` instead.
7+
* Add `getQueueAudits` support to `Health` service.
8+
* Add longtext/mediumtext/text/varchar attribute and column helpers to `Databases` and `TablesDB` services.
9+
310
## 13.1.0
411

512
* Added ability to create columns and indexes synchronously while creating a table
@@ -52,4 +59,4 @@
5259

5360
## 7.0.0
5461

55-
* Fix pong response & chunked upload
62+
* Fix pong response & chunked upload

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2025 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2026 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
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-1.8.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.8.1-blue.svg?style=flat-square)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
88

99
**This SDK is compatible with Appwrite server version 1.8.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
13-
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 Kotlin 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)
13+
Appwrite is an open-source backend as a service server that abstracts and simplifies 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 Kotlin 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)
1414

1515
![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)
1616

@@ -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:13.1.0")
42+
implementation("io.appwrite:sdk-for-kotlin:14.0.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>13.1.0</version>
53+
<version>14.0.0</version>
5454
</dependency>
5555
</dependencies>
5656
```

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ext {
1313
POM_URL = 'https://github.com/appwrite/sdk-for-kotlin'
1414
POM_SCM_URL = 'https://github.com/appwrite/sdk-for-kotlin'
1515
POM_ISSUE_URL = 'https://github.com/appwrite/sdk-for-kotlin/issues'
16-
POM_DESCRIPTION = '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 Kotlin 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)'
16+
POM_DESCRIPTION = 'Appwrite is an open-source backend as a service server that abstracts and simplifies 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 Kotlin 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)'
1717
POM_LICENSE_URL = 'https://opensource.org/licenses/GPL-3.0'
1818
POM_LICENSE_NAME = "GPL-3.0"
1919
POM_DEVELOPER_ID = 'appwrite'

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

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ Client client = new Client()
99

1010
Account account = new Account(client);
1111

12-
account.createJWT(new CoroutineCallback<>((result, error) -> {
13-
if (error != null) {
14-
error.printStackTrace();
15-
return;
16-
}
12+
account.createJWT(
13+
0, // duration (optional)
14+
new CoroutineCallback<>((result, error) -> {
15+
if (error != null) {
16+
error.printStackTrace();
17+
return;
18+
}
19+
20+
System.out.println(result);
21+
})
22+
);
1723

18-
System.out.println(result);
19-
}));

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Avatars;
44
import io.appwrite.enums.Theme;
55
import io.appwrite.enums.Timezone;
6-
import io.appwrite.enums.Output;
6+
import io.appwrite.enums.BrowserPermission;
7+
import io.appwrite.enums.ImageFormat;
78

89
Client client = new Client()
910
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -21,21 +22,21 @@ avatars.getScreenshot(
2122
1920, // viewportWidth (optional)
2223
1080, // viewportHeight (optional)
2324
2, // scale (optional)
24-
Theme.LIGHT, // theme (optional)
25+
Theme.DARK, // theme (optional)
2526
"Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // userAgent (optional)
2627
true, // fullpage (optional)
2728
"en-US", // locale (optional)
28-
Timezone.AFRICA_ABIDJAN, // timezone (optional)
29+
Timezone.AMERICA_NEW_YORK, // timezone (optional)
2930
37.7749, // latitude (optional)
3031
-122.4194, // longitude (optional)
3132
100, // accuracy (optional)
3233
true, // touch (optional)
33-
List.of("geolocation", "notifications"), // permissions (optional)
34+
List.of(BrowserPermission.GEOLOCATION, BrowserPermission.NOTIFICATIONS), // permissions (optional)
3435
3, // sleep (optional)
3536
800, // width (optional)
3637
600, // height (optional)
3738
85, // quality (optional)
38-
Output.JPG, // output (optional)
39+
ImageFormat.JPEG, // output (optional)
3940
new CoroutineCallback<>((result, error) -> {
4041
if (error != null) {
4142
error.printStackTrace();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Databases;
44
import io.appwrite.enums.IndexType;
5+
import io.appwrite.enums.OrderBy;
56

67
Client client = new Client()
78
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -16,7 +17,7 @@ databases.createIndex(
1617
"", // key
1718
IndexType.KEY, // type
1819
List.of(), // attributes
19-
List.of(), // orders (optional)
20+
List.of(OrderBy.ASC), // orders (optional)
2021
List.of(), // lengths (optional)
2122
new CoroutineCallback<>((result, error) -> {
2223
if (error != null) {
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.Databases;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Databases databases = new Databases(client);
11+
12+
databases.createLongtextAttribute(
13+
"<DATABASE_ID>", // databaseId
14+
"<COLLECTION_ID>", // collectionId
15+
"", // key
16+
false, // required
17+
"<DEFAULT>", // default (optional)
18+
false, // array (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
System.out.println(result);
26+
})
27+
);
28+
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.Databases;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Databases databases = new Databases(client);
11+
12+
databases.createMediumtextAttribute(
13+
"<DATABASE_ID>", // databaseId
14+
"<COLLECTION_ID>", // collectionId
15+
"", // key
16+
false, // required
17+
"<DEFAULT>", // default (optional)
18+
false, // array (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
System.out.println(result);
26+
})
27+
);
28+
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.Databases;
4+
5+
Client client = new Client()
6+
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7+
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8+
.setKey("<YOUR_API_KEY>"); // Your secret API key
9+
10+
Databases databases = new Databases(client);
11+
12+
databases.createTextAttribute(
13+
"<DATABASE_ID>", // databaseId
14+
"<COLLECTION_ID>", // collectionId
15+
"", // key
16+
false, // required
17+
"<DEFAULT>", // default (optional)
18+
false, // array (optional)
19+
new CoroutineCallback<>((result, error) -> {
20+
if (error != null) {
21+
error.printStackTrace();
22+
return;
23+
}
24+
25+
System.out.println(result);
26+
})
27+
);
28+

0 commit comments

Comments
 (0)