File tree Expand file tree Collapse file tree 13 files changed +28
-28
lines changed
library/src/main/java/io/appwrite Expand file tree Collapse file tree 13 files changed +28
-28
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ repositories {
38
38
Next, add the dependency to your project's ` build.gradle(.kts) ` file:
39
39
40
40
``` 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 ")
42
42
```
43
43
44
44
### Maven
@@ -49,7 +49,7 @@ Add this to your project's `pom.xml` file:
49
49
<dependency >
50
50
<groupId >io.appwrite</groupId >
51
51
<artifactId >sdk-for-android</artifactId >
52
- <version >5.0.0-rc.2 </version >
52
+ <version >5.0.0-rc.3 </version >
53
53
</dependency >
54
54
</dependencies >
55
55
```
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client;
2
2
import io.appwrite.coroutines.CoroutineCallback;
3
3
import io.appwrite.services.Account;
4
- import io.appwrite.enums.Type ;
4
+ import io.appwrite.enums.AuthenticatorType ;
5
5
6
6
Client client = new Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
10
10
Account account = new Account(client);
11
11
12
12
account.addAuthenticator(
13
- type .TOTP,
13
+ AuthenticatorType .TOTP,
14
14
new CoroutineCallback<>((result, error) -> {
15
15
if (error != null) {
16
16
error.printStackTrace();
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client;
2
2
import io.appwrite.coroutines.CoroutineCallback;
3
3
import io.appwrite.services.Account;
4
- import io.appwrite.enums.Factor ;
4
+ import io.appwrite.enums.AuthenticationFactor ;
5
5
6
6
Client client = new Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
10
10
Account account = new Account(client);
11
11
12
12
account.create2FAChallenge(
13
- factor .TOTP,
13
+ AuthenticationFactor .TOTP,
14
14
new CoroutineCallback<>((result, error) -> {
15
15
if (error != null) {
16
16
error.printStackTrace();
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client;
2
2
import io.appwrite.coroutines.CoroutineCallback;
3
3
import io.appwrite.services.Account;
4
- import io.appwrite.enums.Type ;
4
+ import io.appwrite.enums.AuthenticatorType ;
5
5
6
6
Client client = new Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
10
10
Account account = new Account(client);
11
11
12
12
account.deleteAuthenticator(
13
- type .TOTP,
13
+ AuthenticatorType .TOTP,
14
14
"[ OTP] ",
15
15
new CoroutineCallback<>((result, error) -> {
16
16
if (error != null) {
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client;
2
2
import io.appwrite.coroutines.CoroutineCallback;
3
3
import io.appwrite.services.Account;
4
- import io.appwrite.enums.Type ;
4
+ import io.appwrite.enums.AuthenticatorType ;
5
5
6
6
Client client = new Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
10
10
Account account = new Account(client);
11
11
12
12
account.verifyAuthenticator(
13
- type .TOTP,
13
+ AuthenticatorType .TOTP,
14
14
"[ OTP] ",
15
15
new CoroutineCallback<>((result, error) -> {
16
16
if (error != null) {
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client
2
2
import io.appwrite.coroutines.CoroutineCallback
3
3
import io.appwrite.services.Account
4
- import io.appwrite.enums.Type
4
+ import io.appwrite.enums.AuthenticatorType
5
5
6
6
val client = Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,5 +10,5 @@ val client = Client(context)
10
10
val account = Account(client)
11
11
12
12
val response = account.addAuthenticator(
13
- type = type .TOTP,
13
+ type = AuthenticatorType .TOTP,
14
14
)
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client
2
2
import io.appwrite.coroutines.CoroutineCallback
3
3
import io.appwrite.services.Account
4
- import io.appwrite.enums.Factor
4
+ import io.appwrite.enums.AuthenticationFactor
5
5
6
6
val client = Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,5 +10,5 @@ val client = Client(context)
10
10
val account = Account(client)
11
11
12
12
val response = account.create2FAChallenge(
13
- factor = factor .TOTP,
13
+ factor = AuthenticationFactor .TOTP,
14
14
)
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client
2
2
import io.appwrite.coroutines.CoroutineCallback
3
3
import io.appwrite.services.Account
4
- import io.appwrite.enums.Type
4
+ import io.appwrite.enums.AuthenticatorType
5
5
6
6
val client = Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,6 +10,6 @@ val client = Client(context)
10
10
val account = Account(client)
11
11
12
12
val response = account.deleteAuthenticator(
13
- type = type .TOTP,
13
+ type = AuthenticatorType .TOTP,
14
14
otp = "[ OTP] ",
15
15
)
Original file line number Diff line number Diff line change 1
1
import io.appwrite.Client
2
2
import io.appwrite.coroutines.CoroutineCallback
3
3
import io.appwrite.services.Account
4
- import io.appwrite.enums.Type
4
+ import io.appwrite.enums.AuthenticatorType
5
5
6
6
val client = Client(context)
7
7
.setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,6 +10,6 @@ val client = Client(context)
10
10
val account = Account(client)
11
11
12
12
val response = account.verifyAuthenticator(
13
- type = type .TOTP,
13
+ type = AuthenticatorType .TOTP,
14
14
otp = "[ OTP] ",
15
15
)
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ class Client @JvmOverloads constructor(
83
83
" x-sdk-name" to " Android" ,
84
84
" x-sdk-platform" to " client" ,
85
85
" 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"
88
88
)
89
89
config = mutableMapOf ()
90
90
You can’t perform that action at this time.
0 commit comments