File tree Expand file tree Collapse file tree 10 files changed +32
-18
lines changed
src/main/java/com/web3auth/core/types Expand file tree Collapse file tree 10 files changed +32
-18
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ data class Web3AuthOptions(
166166
167167data class LoginParams (
168168 val loginProvider : Provider ,
169- val reLogin : Boolean? = null ,
170169 val skipTKey : Boolean? = null ,
171170 val extraLoginOptions : ExtraLoginOptions ? = null ,
172171 val redirectUrl : Uri ? = null ,
Original file line number Diff line number Diff line change @@ -48,16 +48,16 @@ android {
4848dependencies {
4949 // Default
5050 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
51- implementation ' androidx.core:core-ktx:1.7 .0'
52- implementation ' androidx.appcompat:appcompat:1.4.1 '
53- implementation ' com.google.android.material:material:1.5.0 '
54- implementation ' androidx.constraintlayout:constraintlayout:2.1.3 '
51+ implementation ' androidx.core:core-ktx:1.8 .0'
52+ implementation ' androidx.appcompat:appcompat:1.4.2 '
53+ implementation ' com.google.android.material:material:1.6.1 '
54+ implementation ' androidx.constraintlayout:constraintlayout:2.1.4 '
5555
5656 // Completable Futures support
5757 implementation ' net.sourceforge.streamsupport:streamsupport-cfuture:1.7.4'
5858
5959 // Encoding
60- implementation ' com.google.code.gson:gson:2.8.9 '
60+ implementation ' com.google.code.gson:gson:2.9.0 '
6161
6262 // Web3Auth
6363 implementation project(" :core" )
Original file line number Diff line number Diff line change 11buildscript {
2- ext. kotlin_version = " 1.6.0 "
2+ ext. kotlin_version = " 1.7.10 "
33 repositories {
44 google()
55 mavenCentral()
66 }
77 dependencies {
8- classpath ' com.android.tools.build:gradle:7.1.2 '
8+ classpath ' com.android.tools.build:gradle:7.2.1 '
99 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1010 }
1111}
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ android {
3434dependencies {
3535 // Default
3636 implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
37- implementation ' androidx.core:core-ktx:1.7 .0'
38- implementation ' androidx.appcompat:appcompat:1.4.1 '
37+ implementation ' androidx.core:core-ktx:1.8 .0'
38+ implementation ' androidx.appcompat:appcompat:1.4.2 '
3939
4040 // Completable Futures support
4141 implementation ' net.sourceforge.streamsupport:streamsupport-cfuture:1.7.4'
@@ -44,7 +44,7 @@ dependencies {
4444 implementation ' androidx.browser:browser:1.4.0'
4545
4646 // Encoding
47- implementation ' com.google.code.gson:gson:2.8.9 '
47+ implementation ' com.google.code.gson:gson:2.9.0 '
4848
4949 // Test
5050 testImplementation ' junit:junit:4.+'
Original file line number Diff line number Diff line change 1+ package com.web3auth.core.types
2+
3+ import com.google.gson.annotations.SerializedName
4+
5+ enum class Curve {
6+ @SerializedName(" secp256k1" )
7+ SECP256K1 ,
8+ @SerializedName(" ed25519" )
9+ ED25519
10+ }
Original file line number Diff line number Diff line change @@ -5,10 +5,11 @@ import com.web3auth.core.Web3Auth
55
66data class LoginParams (
77 val loginProvider : Provider ,
8- val relogin : Boolean? = null ,
98 val dappShare : String? = null ,
109 val extraLoginOptions : ExtraLoginOptions ? = null ,
1110 val redirectUrl : Uri ? = null ,
1211 val appState : String? = null ,
13- val mfaLevel : MFALevel ? = null
12+ val mfaLevel : MFALevel ? = null ,
13+ val sessionTime : Int? = null ,
14+ val curve : Curve ? = null
1415)
Original file line number Diff line number Diff line change @@ -3,12 +3,16 @@ package com.web3auth.core.types
33import androidx.annotation.Keep
44
55@Keep
6- data class UserInfo (var email : String = " " ,
6+ data class UserInfo (
7+ var email : String = " " ,
78 var name : String = " " ,
89 var profileImage : String = " " ,
910 var aggregateVerifier : String = " " ,
1011 var verifier : String = " " ,
1112 var verifierId : String = " " ,
1213 var typeOfLogin : String = " " ,
13- var dappShare : String = " "
14+ var dappShare : String = " " ,
15+ var idToken : String = " " ,
16+ var oAuthIdToken : String = " " ,
17+ var oAuthAccessToken : String = " "
1418)
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ data class Web3AuthResponse(
77 val privKey : String? = null ,
88 val ed25519PrivKey : String? = null ,
99 val userInfo : UserInfo ? = null ,
10- val error : String? = null
10+ val error : String? = null ,
11+ val sessionId : String? = null
1112)
Original file line number Diff line number Diff line change 11# Mon Nov 22 12:32:04 SGT 2021
22distributionBase =GRADLE_USER_HOME
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.2 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.3 -bin.zip
44distributionPath =wrapper/dists
55zipStorePath =wrapper/dists
66zipStoreBase =GRADLE_USER_HOME
You can’t perform that action at this time.
0 commit comments