Skip to content

Commit 38689a5

Browse files
committed
update android sdk to 3.0.0.5
1 parent 4dc9b80 commit 38689a5

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

android-quick-start/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dependencies {
4444
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
4545
implementation 'com.google.code.gson:gson:2.9.1'
4646
// IMP START - Installation
47-
implementation 'com.github.grvgoel81:web3auth-android-sdk:3.0.0.1'
47+
implementation 'com.github.grvgoel81:web3auth-android-sdk:3.0.0.5'
4848
// IMP END - Installation
4949
implementation 'org.web3j:core:4.8.7-android'
5050
testImplementation 'junit:junit:4.13.2'

android-quick-start/app/src/main/java/com/sbz/web3authdemoapp/MainActivity.kt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class MainActivity : AppCompatActivity() {
5656
clientId = getString(R.string.web3auth_project_id),
5757
web3AuthNetwork = Web3AuthNetwork.SAPPHIRE_DEVNET, // pass over the network you want to use (MAINNET or TESTNET or CYAN, AQUA, SAPPHIRE_MAINNET or SAPPHIRE_TESTNET)
5858
redirectUrl = "com.sbz.web3authdemoapp://auth",
59-
defaultChainId = "0xaa36a7"
59+
defaultChainId = "0xaa36a7",
60+
authBuildEnv = BuildEnv.TESTING
6061
), this
6162
)
6263
// IMP END - Initialize Web3Auth
@@ -147,8 +148,14 @@ class MainActivity : AppCompatActivity() {
147148
private fun signIn() {
148149
val email = emailInput.text.toString()
149150
// IMP START - Login
150-
val authConnection = AuthConnection.EMAIL_PASSWORDLESS // Can be GOOGLE, FACEBOOK, TWITCH etc.
151-
val loginParams = LoginParams(authConnection, extraLoginOptions = ExtraLoginOptions(login_hint = email, flow_type = EmailFlowType.code))
151+
val authConnection = AuthConnection.GOOGLE // Can be GOOGLE, FACEBOOK, TWITCH etc.
152+
val loginParams = LoginParams(
153+
authConnection,
154+
extraLoginOptions = ExtraLoginOptions(
155+
login_hint = email,
156+
flow_type = EmailFlowType.code
157+
)
158+
)
152159
// val loginParams = LoginParams(authConnection)
153160
val loginCompletableFuture: CompletableFuture<Web3AuthResponse> =
154161
web3Auth.connectTo(loginParams)

0 commit comments

Comments
 (0)