Skip to content

Commit 956492a

Browse files
committed
Release candidate 4 for 1.5.x
1 parent 7716280 commit 956492a

File tree

149 files changed

+531
-322
lines changed

Some content is hidden

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

149 files changed

+531
-322
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-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.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
[![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)
@@ -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:5.0.0-rc.3")
41+
implementation("io.appwrite:sdk-for-android:5.0.0-rc.4")
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>5.0.0-rc.3</version>
52+
<version>5.0.0-rc.4</version>
5353
</dependency>
5454
</dependencies>
5555
```

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

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

1212
account.addAuthenticator(
13-
AuthenticatorType.TOTP,
13+
AuthenticatorType.TOTP, // type
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -19,4 +19,5 @@ account.addAuthenticator(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);
23+

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Client client = new Client(context)
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();
@@ -19,4 +19,5 @@ account.createEmailPasswordSession(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);
23+

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Client client = new Client(context)
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();
@@ -19,4 +20,5 @@ account.createEmailToken(
1920

2021
Log.d("Appwrite", result.toString());
2122
})
22-
);
23+
);
24+

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ Client client = new Client(context)
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();
@@ -19,4 +21,5 @@ account.createMagicURLToken(
1921

2022
Log.d("Appwrite", result.toString());
2123
})
22-
);
24+
);
25+

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ Client client = new Client(context)
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();
@@ -19,4 +23,5 @@ account.createOAuth2Session(
1923

2024
Log.d("Appwrite", result.toString());
2125
})
22-
);
26+
);
27+

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Client client = new Client(context)
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();
@@ -19,4 +19,5 @@ account.createPhoneToken(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);
23+

docs/examples/java/account/create-push-target.md

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

1111
account.createPushTarget(
12-
"[TARGET_ID]",
13-
"[IDENTIFIER]",
12+
"[TARGET_ID]", // targetId
13+
"[IDENTIFIER]", // identifier
14+
"[PROVIDER_ID]", // providerId (optional)
1415
new CoroutineCallback<>((result, error) -> {
1516
if (error != null) {
1617
error.printStackTrace();
@@ -19,4 +20,5 @@ account.createPushTarget(
1920

2021
Log.d("Appwrite", result.toString());
2122
})
22-
);
23+
);
24+

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

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

1111
account.createRecovery(
12-
13-
"https://example.com",
12+
"[email protected]", // email
13+
"https://example.com", // url
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();
@@ -19,4 +19,5 @@ account.createRecovery(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);
23+

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Client client = new Client(context)
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();
@@ -19,4 +19,5 @@ account.createSession(
1919

2020
Log.d("Appwrite", result.toString());
2121
})
22-
);
22+
);
23+

0 commit comments

Comments
 (0)