Skip to content

Commit 7716280

Browse files
committed
Release candidate for 1.5.x
1 parent 9b5e285 commit 7716280

File tree

13 files changed

+28
-28
lines changed

13 files changed

+28
-28
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.2")
41+
implementation("io.appwrite:sdk-for-android:5.0.0-rc.3")
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.2</version>
52+
<version>5.0.0-rc.3</version>
5353
</dependency>
5454
</dependencies>
5555
```

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
4-
import io.appwrite.enums.Type;
4+
import io.appwrite.enums.AuthenticatorType;
55

66
Client client = new Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010
Account account = new Account(client);
1111

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

docs/examples/java/account/create2f-a-challenge.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
4-
import io.appwrite.enums.Factor;
4+
import io.appwrite.enums.AuthenticationFactor;
55

66
Client client = new Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010
Account account = new Account(client);
1111

1212
account.create2FAChallenge(
13-
factor.TOTP,
13+
AuthenticationFactor.TOTP,
1414
new CoroutineCallback<>((result, error) -> {
1515
if (error != null) {
1616
error.printStackTrace();

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
4-
import io.appwrite.enums.Type;
4+
import io.appwrite.enums.AuthenticatorType;
55

66
Client client = new Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010
Account account = new Account(client);
1111

1212
account.deleteAuthenticator(
13-
type.TOTP,
13+
AuthenticatorType.TOTP,
1414
"[OTP]",
1515
new CoroutineCallback<>((result, error) -> {
1616
if (error != null) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client;
22
import io.appwrite.coroutines.CoroutineCallback;
33
import io.appwrite.services.Account;
4-
import io.appwrite.enums.Type;
4+
import io.appwrite.enums.AuthenticatorType;
55

66
Client client = new Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010
Account account = new Account(client);
1111

1212
account.verifyAuthenticator(
13-
type.TOTP,
13+
AuthenticatorType.TOTP,
1414
"[OTP]",
1515
new CoroutineCallback<>((result, error) -> {
1616
if (error != null) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client
22
import io.appwrite.coroutines.CoroutineCallback
33
import io.appwrite.services.Account
4-
import io.appwrite.enums.Type
4+
import io.appwrite.enums.AuthenticatorType
55

66
val client = Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,5 +10,5 @@ val client = Client(context)
1010
val account = Account(client)
1111

1212
val response = account.addAuthenticator(
13-
type = type.TOTP,
13+
type = AuthenticatorType.TOTP,
1414
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client
22
import io.appwrite.coroutines.CoroutineCallback
33
import io.appwrite.services.Account
4-
import io.appwrite.enums.Factor
4+
import io.appwrite.enums.AuthenticationFactor
55

66
val client = Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,5 +10,5 @@ val client = Client(context)
1010
val account = Account(client)
1111

1212
val response = account.create2FAChallenge(
13-
factor = factor.TOTP,
13+
factor = AuthenticationFactor.TOTP,
1414
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client
22
import io.appwrite.coroutines.CoroutineCallback
33
import io.appwrite.services.Account
4-
import io.appwrite.enums.Type
4+
import io.appwrite.enums.AuthenticatorType
55

66
val client = Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,6 +10,6 @@ val client = Client(context)
1010
val account = Account(client)
1111

1212
val response = account.deleteAuthenticator(
13-
type = type.TOTP,
13+
type = AuthenticatorType.TOTP,
1414
otp = "[OTP]",
1515
)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import io.appwrite.Client
22
import io.appwrite.coroutines.CoroutineCallback
33
import io.appwrite.services.Account
4-
import io.appwrite.enums.Type
4+
import io.appwrite.enums.AuthenticatorType
55

66
val client = Client(context)
77
.setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
@@ -10,6 +10,6 @@ val client = Client(context)
1010
val account = Account(client)
1111

1212
val response = account.verifyAuthenticator(
13-
type = type.TOTP,
13+
type = AuthenticatorType.TOTP,
1414
otp = "[OTP]",
1515
)

library/src/main/java/io/appwrite/Client.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ class Client @JvmOverloads constructor(
8383
"x-sdk-name" to "Android",
8484
"x-sdk-platform" to "client",
8585
"x-sdk-language" to "android",
86-
"x-sdk-version" to "5.0.0-rc.2",
87-
"x-appwrite-response-format" to "1.4.0"
86+
"x-sdk-version" to "5.0.0-rc.3",
87+
"x-appwrite-response-format" to "1.5.0"
8888
)
8989
config = mutableMapOf()
9090

0 commit comments

Comments
 (0)