Skip to content

Commit 80cb871

Browse files
authored
Merge pull request #104 from appwrite/dev
2 parents 8e8d95c + c104819 commit 80cb871

36 files changed

+522
-70
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.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 `Channel` helpers for Realtime.
8+
39
## 11.4.0
410

511
* Add `getScreenshot` method to `Avatars` service

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,14 +2,14 @@
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.8.1-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

1010
**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

12-
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)
12+
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 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

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

@@ -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.4.0")
41+
implementation("io.appwrite:sdk-for-android:12.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>11.4.0</version>
52+
<version>12.0.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,5 @@ task clean(type: Delete) {
2929
delete rootProject.buildDir
3030
}
3131

32-
3332
apply from: "${rootDir}/scripts/publish-config.gradle"
3433

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

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

99
Account account = new Account(client);
1010

11-
account.createJWT(new CoroutineCallback<>((result, error) -> {
12-
if (error != null) {
13-
error.printStackTrace();
14-
return;
15-
}
11+
account.createJWT(
12+
0, // duration (optional)
13+
new CoroutineCallback<>((result, error) -> {
14+
if (error != null) {
15+
error.printStackTrace();
16+
return;
17+
}
18+
19+
Log.d("Appwrite", result.toString());
20+
})
21+
);
1622

17-
Log.d("Appwrite", result.toString());
18-
}));

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

Lines changed: 4 additions & 3 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(context)
910
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
@@ -29,12 +30,12 @@ avatars.getScreenshot(
2930
-122.4194, // longitude (optional)
3031
100, // accuracy (optional)
3132
true, // touch (optional)
32-
List.of("geolocation", "notifications"), // permissions (optional)
33+
BrowserPermission.GEOLOCATION, // permissions (optional)
3334
3, // sleep (optional)
3435
800, // width (optional)
3536
600, // height (optional)
3637
85, // quality (optional)
37-
Output.JPG, // output (optional)
38+
ImageFormat.JPG, // output (optional)
3839
new CoroutineCallback<>((result, error) -> {
3940
if (error != null) {
4041
error.printStackTrace();

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ databases.updateDocument(
1414
"<DATABASE_ID>", // databaseId
1515
"<COLLECTION_ID>", // collectionId
1616
"<DOCUMENT_ID>", // documentId
17-
Map.of("a", "b"), // data (optional)
17+
Map.of(
18+
"username", "walter.obrien",
19+
"email", "walter.obrien@example.com",
20+
"fullName", "Walter O'Brien",
21+
"age", 33,
22+
"isAdmin", false
23+
), // data (optional)
1824
List.of(Permission.read(Role.any())), // permissions (optional)
1925
"<TRANSACTION_ID>", // transactionId (optional)
2026
new CoroutineCallback<>((result, error) -> {

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ databases.upsertDocument(
1414
"<DATABASE_ID>", // databaseId
1515
"<COLLECTION_ID>", // collectionId
1616
"<DOCUMENT_ID>", // documentId
17-
Map.of("a", "b"), // data
17+
Map.of(
18+
"username", "walter.obrien",
19+
"email", "walter.obrien@example.com",
20+
"fullName", "Walter O'Brien",
21+
"age", 30,
22+
"isAdmin", false
23+
), // data (optional)
1824
List.of(Permission.read(Role.any())), // permissions (optional)
1925
"<TRANSACTION_ID>", // transactionId (optional)
2026
new CoroutineCallback<>((result, error) -> {

docs/examples/java/tablesdb/update-row.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ tablesDB.updateRow(
1414
"<DATABASE_ID>", // databaseId
1515
"<TABLE_ID>", // tableId
1616
"<ROW_ID>", // rowId
17-
Map.of("a", "b"), // data (optional)
17+
Map.of(
18+
"username", "walter.obrien",
19+
"email", "walter.obrien@example.com",
20+
"fullName", "Walter O'Brien",
21+
"age", 33,
22+
"isAdmin", false
23+
), // data (optional)
1824
List.of(Permission.read(Role.any())), // permissions (optional)
1925
"<TRANSACTION_ID>", // transactionId (optional)
2026
new CoroutineCallback<>((result, error) -> {

docs/examples/java/tablesdb/upsert-row.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@ tablesDB.upsertRow(
1414
"<DATABASE_ID>", // databaseId
1515
"<TABLE_ID>", // tableId
1616
"<ROW_ID>", // rowId
17-
Map.of("a", "b"), // data (optional)
17+
Map.of(
18+
"username", "walter.obrien",
19+
"email", "walter.obrien@example.com",
20+
"fullName", "Walter O'Brien",
21+
"age", 33,
22+
"isAdmin", false
23+
), // data (optional)
1824
List.of(Permission.read(Role.any())), // permissions (optional)
1925
"<TRANSACTION_ID>", // transactionId (optional)
2026
new CoroutineCallback<>((result, error) -> {

0 commit comments

Comments
 (0)