Skip to content

Commit 648d6e4

Browse files
committed
Release candidate 4 for 1.5.x
1 parent 83caa55 commit 648d6e4

File tree

352 files changed

+1631
-583
lines changed

Some content is hidden

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

352 files changed

+1631
-583
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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.4.13-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.5.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

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

docs/examples/java/account/add-authenticator.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Client client = new Client()
1111
Account account = new Account(client);
1212

1313
account.addAuthenticator(
14-
AuthenticatorType.TOTP
14+
AuthenticatorType.TOTP, // type
1515
new CoroutineCallback<>((result, error) -> {
1616
if (error != null) {
1717
error.printStackTrace();
@@ -21,3 +21,4 @@ account.addAuthenticator(
2121
System.out.println(result);
2222
})
2323
);
24+

docs/examples/java/account/create-email-password-session.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Client client = new Client()
99
Account account = new Account(client);
1010

1111
account.createEmailPasswordSession(
12-
13-
"password"
12+
"[email protected]", // email
13+
"password", // password
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createEmailPasswordSession(
2020
System.out.println(result);
2121
})
2222
);
23+

docs/examples/java/account/create-email-token.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Client client = new Client()
99
Account account = new Account(client);
1010

1111
account.createEmailToken(
12-
"[USER_ID]",
13-
12+
"[USER_ID]", // userId
13+
"[email protected]", // email
14+
false, // phrase (optional)
1415
new CoroutineCallback<>((result, error) -> {
1516
if (error != null) {
1617
error.printStackTrace();
@@ -20,3 +21,4 @@ account.createEmailToken(
2021
System.out.println(result);
2122
})
2223
);
24+

docs/examples/java/account/create-magic-u-r-l-token.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ Client client = new Client()
99
Account account = new Account(client);
1010

1111
account.createMagicURLToken(
12-
"[USER_ID]",
13-
12+
"[USER_ID]", // userId
13+
"[email protected]", // email
14+
"https://example.com", // url (optional)
15+
false, // phrase (optional)
1416
new CoroutineCallback<>((result, error) -> {
1517
if (error != null) {
1618
error.printStackTrace();
@@ -20,3 +22,4 @@ account.createMagicURLToken(
2022
System.out.println(result);
2123
})
2224
);
25+

docs/examples/java/account/create-o-auth2session.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Client client = new Client()
1010
Account account = new Account(client);
1111

1212
account.createOAuth2Session(
13-
OAuthProvider.AMAZON,
13+
OAuthProvider.AMAZON, // provider
14+
"https://example.com", // success (optional)
15+
"https://example.com", // failure (optional)
16+
false, // token (optional)
17+
listOf(), // scopes (optional)
1418
new CoroutineCallback<>((result, error) -> {
1519
if (error != null) {
1620
error.printStackTrace();
@@ -20,3 +24,4 @@ account.createOAuth2Session(
2024
System.out.println(result);
2125
})
2226
);
27+

docs/examples/java/account/create-phone-token.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Client client = new Client()
99
Account account = new Account(client);
1010

1111
account.createPhoneToken(
12-
"[USER_ID]",
13-
"+12065550100"
12+
"[USER_ID]", // userId
13+
"+12065550100", // phone
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createPhoneToken(
2020
System.out.println(result);
2121
})
2222
);
23+

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Client client = new Client()
1010
Account account = new Account(client);
1111

1212
account.createRecovery(
13-
14-
"https://example.com"
13+
"[email protected]", // email
14+
"https://example.com", // url
1515
new CoroutineCallback<>((result, error) -> {
1616
if (error != null) {
1717
error.printStackTrace();
@@ -21,3 +21,4 @@ account.createRecovery(
2121
System.out.println(result);
2222
})
2323
);
24+

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Client client = new Client()
99
Account account = new Account(client);
1010

1111
account.createSession(
12-
"[USER_ID]",
13-
"[SECRET]"
12+
"[USER_ID]", // userId
13+
"[SECRET]", // secret
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createSession(
2020
System.out.println(result);
2121
})
2222
);
23+

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Client client = new Client()
1010
Account account = new Account(client);
1111

1212
account.createVerification(
13-
"https://example.com"
13+
"https://example.com", // url
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createVerification(
2020
System.out.println(result);
2121
})
2222
);
23+

0 commit comments

Comments
 (0)