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 {
3838Next, 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```
Original file line number Diff line number Diff line change 11import io.appwrite.Client;
22import io.appwrite.coroutines.CoroutineCallback;
33import io.appwrite.services.Account;
4- import io.appwrite.enums.Type ;
4+ import io.appwrite.enums.AuthenticatorType ;
55
66Client client = new Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010Account account = new Account(client);
1111
1212account.addAuthenticator(
13- type .TOTP,
13+ AuthenticatorType .TOTP,
1414 new CoroutineCallback<>((result, error) -> {
1515 if (error != null) {
1616 error.printStackTrace();
Original file line number Diff line number Diff line change 11import io.appwrite.Client;
22import io.appwrite.coroutines.CoroutineCallback;
33import io.appwrite.services.Account;
4- import io.appwrite.enums.Factor ;
4+ import io.appwrite.enums.AuthenticationFactor ;
55
66Client client = new Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010Account account = new Account(client);
1111
1212account.create2FAChallenge(
13- factor .TOTP,
13+ AuthenticationFactor .TOTP,
1414 new CoroutineCallback<>((result, error) -> {
1515 if (error != null) {
1616 error.printStackTrace();
Original file line number Diff line number Diff line change 11import io.appwrite.Client;
22import io.appwrite.coroutines.CoroutineCallback;
33import io.appwrite.services.Account;
4- import io.appwrite.enums.Type ;
4+ import io.appwrite.enums.AuthenticatorType ;
55
66Client client = new Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010Account account = new Account(client);
1111
1212account.deleteAuthenticator(
13- type .TOTP,
13+ AuthenticatorType .TOTP,
1414 "[ OTP] ",
1515 new CoroutineCallback<>((result, error) -> {
1616 if (error != null) {
Original file line number Diff line number Diff line change 11import io.appwrite.Client;
22import io.appwrite.coroutines.CoroutineCallback;
33import io.appwrite.services.Account;
4- import io.appwrite.enums.Type ;
4+ import io.appwrite.enums.AuthenticatorType ;
55
66Client client = new Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,7 +10,7 @@ Client client = new Client(context)
1010Account account = new Account(client);
1111
1212account.verifyAuthenticator(
13- type .TOTP,
13+ AuthenticatorType .TOTP,
1414 "[ OTP] ",
1515 new CoroutineCallback<>((result, error) -> {
1616 if (error != null) {
Original file line number Diff line number Diff line change 11import io.appwrite.Client
22import io.appwrite.coroutines.CoroutineCallback
33import io.appwrite.services.Account
4- import io.appwrite.enums.Type
4+ import io.appwrite.enums.AuthenticatorType
55
66val client = Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,5 +10,5 @@ val client = Client(context)
1010val account = Account(client)
1111
1212val response = account.addAuthenticator(
13- type = type .TOTP,
13+ type = AuthenticatorType .TOTP,
1414)
Original file line number Diff line number Diff line change 11import io.appwrite.Client
22import io.appwrite.coroutines.CoroutineCallback
33import io.appwrite.services.Account
4- import io.appwrite.enums.Factor
4+ import io.appwrite.enums.AuthenticationFactor
55
66val client = Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,5 +10,5 @@ val client = Client(context)
1010val account = Account(client)
1111
1212val response = account.create2FAChallenge(
13- factor = factor .TOTP,
13+ factor = AuthenticationFactor .TOTP,
1414)
Original file line number Diff line number Diff line change 11import io.appwrite.Client
22import io.appwrite.coroutines.CoroutineCallback
33import io.appwrite.services.Account
4- import io.appwrite.enums.Type
4+ import io.appwrite.enums.AuthenticatorType
55
66val client = Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,6 +10,6 @@ val client = Client(context)
1010val account = Account(client)
1111
1212val response = account.deleteAuthenticator(
13- type = type .TOTP,
13+ type = AuthenticatorType .TOTP,
1414 otp = "[ OTP] ",
1515)
Original file line number Diff line number Diff line change 11import io.appwrite.Client
22import io.appwrite.coroutines.CoroutineCallback
33import io.appwrite.services.Account
4- import io.appwrite.enums.Type
4+ import io.appwrite.enums.AuthenticatorType
55
66val client = Client(context)
77 .setEndpoint("https://cloud.appwrite.io/v1 ") // Your API Endpoint
@@ -10,6 +10,6 @@ val client = Client(context)
1010val account = Account(client)
1111
1212val response = account.verifyAuthenticator(
13- type = type .TOTP,
13+ type = AuthenticatorType .TOTP,
1414 otp = "[ OTP] ",
1515)
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments