Skip to content

Commit c3287c8

Browse files
committed
Add support for 1.7
1 parent de7c090 commit c3287c8

File tree

130 files changed

+3624
-236
lines changed

Some content is hidden

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

130 files changed

+3624
-236
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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.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
[![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

9-
**This SDK is compatible with Appwrite server version 1.6.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-kotlin/releases).**
9+
**This SDK is compatible with Appwrite server version 1.7.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
@@ -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:8.1.0-rc.1")
42+
implementation("io.appwrite:sdk-for-kotlin:8.2.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>8.1.0-rc.1</version>
53+
<version>8.2.0</version>
5454
</dependency>
5555
</dependencies>
5656
```

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

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

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

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

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

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

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

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

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

1011
Databases databases = new Databases(client);
1112

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import io.appwrite.services.Databases;
44

55
Client client = new Client()
66
.setEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
7-
.setProject("<YOUR_PROJECT_ID>") // Your project ID
8-
.setSession(""); // The user session to authenticate with
7+
.setKey("<YOUR_API_KEY>"); // Your secret API key
98

109
Databases databases = new Databases(client);
1110

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ databases.createIndex(
1717
IndexType.KEY, // type
1818
listOf(), // attributes
1919
listOf(), // orders (optional)
20+
listOf(), // lengths (optional)
2021
new CoroutineCallback<>((result, error) -> {
2122
if (error != null) {
2223
error.printStackTrace();

docs/examples/java/functions/create-build.md renamed to docs/examples/java/functions/create-duplicate-deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Client client = new Client()
99

1010
Functions functions = new Functions(client);
1111

12-
functions.createBuild(
12+
functions.createDuplicateDeployment(
1313
"<FUNCTION_ID>", // functionId
1414
"<DEPLOYMENT_ID>", // deploymentId
1515
"<BUILD_ID>", // buildId (optional)
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.Functions;
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+
Functions functions = new Functions(client);
11+
12+
functions.createTemplateDeployment(
13+
"<FUNCTION_ID>", // functionId
14+
"<REPOSITORY>", // repository
15+
"<OWNER>", // owner
16+
"<ROOT_DIRECTORY>", // rootDirectory
17+
"<VERSION>", // version
18+
false, // activate (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+

docs/examples/java/functions/create-variable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ functions.createVariable(
1313
"<FUNCTION_ID>", // functionId
1414
"<KEY>", // key
1515
"<VALUE>", // value
16+
false, // secret (optional)
1617
new CoroutineCallback<>((result, error) -> {
1718
if (error != null) {
1819
error.printStackTrace();

0 commit comments

Comments
 (0)