Skip to content

Commit 66557e5

Browse files
authored
Merge pull request #76 from appwrite/dev
Dev
2 parents 8126bb9 + c6f6d96 commit 66557e5

24 files changed

+43
-29
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.6.2-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.7.0-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.6.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:7.0.1")
41+
implementation("io.appwrite:sdk-for-android:8.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>7.0.1</version>
52+
<version>8.0.0</version>
5353
</dependency>
5454
</dependencies>
5555
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ avatars.getBrowser(
1313
Browser.AVANT_BROWSER, // code
1414
0, // width (optional)
1515
0, // height (optional)
16-
0, // quality (optional)
16+
-1, // quality (optional)
1717
new CoroutineCallback<>((result, error) -> {
1818
if (error != null) {
1919
error.printStackTrace();

docs/examples/java/avatars/get-credit-card.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ avatars.getCreditCard(
1313
CreditCard.AMERICAN_EXPRESS, // code
1414
0, // width (optional)
1515
0, // height (optional)
16-
0, // quality (optional)
16+
-1, // quality (optional)
1717
new CoroutineCallback<>((result, error) -> {
1818
if (error != null) {
1919
error.printStackTrace();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ avatars.getFlag(
1313
Flag.AFGHANISTAN, // code
1414
0, // width (optional)
1515
0, // height (optional)
16-
0, // quality (optional)
16+
-1, // quality (optional)
1717
new CoroutineCallback<>((result, error) -> {
1818
if (error != null) {
1919
error.printStackTrace();

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

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

55
Client client = new Client(context)
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setProject("<YOUR_PROJECT_ID>"); // Your project ID
7+
.setSession("") // The user session to authenticate with
8+
.setKey("") //
9+
.setJWT("<YOUR_JWT>"); // Your secret JSON Web Token
810

911
Databases databases = new Databases(client);
1012

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Functions functions = new Functions(client);
1111
functions.listExecutions(
1212
"<FUNCTION_ID>", // functionId
1313
listOf(), // queries (optional)
14-
"<SEARCH>", // search (optional)
1514
new CoroutineCallback<>((result, error) -> {
1615
if (error != null) {
1716
error.printStackTrace();

docs/examples/java/storage/get-file-download.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Storage storage = new Storage(client);
1111
storage.getFileDownload(
1212
"<BUCKET_ID>", // bucketId
1313
"<FILE_ID>", // fileId
14+
"<TOKEN>", // token (optional)
1415
new CoroutineCallback<>((result, error) -> {
1516
if (error != null) {
1617
error.printStackTrace();

docs/examples/java/storage/get-file-preview.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ storage.getFilePreview(
1414
0, // width (optional)
1515
0, // height (optional)
1616
ImageGravity.CENTER, // gravity (optional)
17-
0, // quality (optional)
17+
-1, // quality (optional)
1818
0, // borderWidth (optional)
1919
"", // borderColor (optional)
2020
0, // borderRadius (optional)
2121
0, // opacity (optional)
2222
-360, // rotation (optional)
2323
"", // background (optional)
2424
ImageFormat.JPG, // output (optional)
25+
"<TOKEN>", // token (optional)
2526
new CoroutineCallback<>((result, error) -> {
2627
if (error != null) {
2728
error.printStackTrace();

docs/examples/java/storage/get-file-view.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Storage storage = new Storage(client);
1111
storage.getFileView(
1212
"<BUCKET_ID>", // bucketId
1313
"<FILE_ID>", // fileId
14+
"<TOKEN>", // token (optional)
1415
new CoroutineCallback<>((result, error) -> {
1516
if (error != null) {
1617
error.printStackTrace();

docs/examples/kotlin/avatars/get-browser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ val result = avatars.getBrowser(
1313
code = Browser.AVANT_BROWSER,
1414
width = 0, // (optional)
1515
height = 0, // (optional)
16-
quality = 0, // (optional)
16+
quality = -1, // (optional)
1717
)

0 commit comments

Comments
 (0)