Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
384c6bd
feat: auth services v10 changes.
grvgoel81 Apr 10, 2025
a417645
feat: update UserInfo
grvgoel81 Apr 14, 2025
2a8b259
feat: wallet-services changes added and update example.
grvgoel81 Apr 15, 2025
1ceec38
feat: update example and bump auth-services version
grvgoel81 Apr 21, 2025
954f652
feat: update example and bump auth-services version
grvgoel81 Apr 23, 2025
95b3770
feat: update sdk inputs
grvgoel81 Apr 23, 2025
5d11e38
feat: Rename ChainsConfig to ChainConfig
grvgoel81 Apr 25, 2025
4eb997c
feat: update variables names and android sdk
grvgoel81 Apr 25, 2025
aed178f
feat: Update pubspec.yaml
grvgoel81 Apr 28, 2025
0f6f226
feat: default value for authConnectionConfig
grvgoel81 Apr 28, 2025
523d7b7
feat: changed authConnection jwt to custom
grvgoel81 Apr 29, 2025
a1c557b
feat: variable naming changes
grvgoel81 May 13, 2025
2c018c4
feat: update LoginParams
grvgoel81 May 14, 2025
c533d2f
feat: update LoginParams
grvgoel81 May 14, 2025
f7bcce8
feat: update wallet-services to v5 version
grvgoel81 May 14, 2025
36daf96
feat: update ExtraLoginOptions
grvgoel81 May 15, 2025
ddf64fa
feat: update android code
grvgoel81 May 19, 2025
e2df060
feat: update input.dart
grvgoel81 May 19, 2025
f164b3a
feat: combined sdk android code initial commit
grvgoel81 Jun 5, 2025
ba50b30
feat: Rename login to connectTo
grvgoel81 Jun 10, 2025
d359522
feat: add whitelabel in Web3AuthOptions
grvgoel81 Jun 11, 2025
85d55ed
feat: add SFA example
grvgoel81 Jun 16, 2025
6f13df3
feat: update android sdk testing version
grvgoel81 Jun 23, 2025
17949df
feat: EmailFlowType default value added
grvgoel81 Jul 10, 2025
f5b738b
feat: update androud sdk
grvgoel81 Jul 14, 2025
87134a1
feat: update example
grvgoel81 Jul 15, 2025
885c61d
feat: optimize imports
grvgoel81 Jul 25, 2025
e818026
Merge remote-tracking branch 'origin/feat/auth_services_v10_changes' …
grvgoel81 Jul 25, 2025
42f2b6b
feat: bump authDashboardVersion to v10.
grvgoel81 Jul 30, 2025
14407a0
feat: swift method changes
grvgoel81 Jul 31, 2025
77c35f3
feat: flutter android analytics added
grvgoel81 Aug 8, 2025
8770759
feat: update android sdk and revert analytics change
grvgoel81 Nov 10, 2025
025c962
feat: update flutter swift sdk.
grvgoel81 Nov 16, 2025
8516c2e
feat: update android gradle settings and bump swift sdk to 12.0.1
grvgoel81 Jan 12, 2026
6016bd1
Merge branch 'master' into feat/auth_services_v10_changes
grvgoel81 Jan 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
implementation 'com.github.Web3Auth:web3auth-android-sdk:9.1.3'
implementation 'com.github.Web3Auth:web3auth-android-sdk:10.0.0'
implementation 'com.google.code.gson:gson:2.10.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.web3auth.flutter.web3auth_flutter
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.util.Log
import androidx.annotation.Keep
import androidx.annotation.NonNull
Expand All @@ -12,7 +11,6 @@ import com.google.gson.JsonArray
import com.google.gson.JsonElement
import com.google.gson.JsonPrimitive
import com.web3auth.core.Web3Auth
import com.web3auth.core.types.ChainConfig
import com.web3auth.core.types.ErrorCode
import com.web3auth.core.types.LoginParams
import com.web3auth.core.types.Web3AuthError
Expand Down Expand Up @@ -99,7 +97,8 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
val initParams = gson.fromJson(initArgs, Web3AuthOptions::class.java)
// handle custom parameters which are gson excluded
val obj = JSONObject(initArgs)
if (obj.has("redirectUrl")) initParams.redirectUrl = Uri.parse(obj.get("redirectUrl") as String?)
if (obj.has("redirectUrl")) initParams.redirectUrl =
obj.get("redirectUrl").toString()
// Log.d(initParams.toString(), "#initParams")
web3auth = Web3Auth(
initParams, activity!!
Expand All @@ -111,14 +110,13 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
return null
}

"login" -> {
"connectTo" -> {
try {
val loginArgs = call.arguments<String>() ?: return null
val loginParams = gson.fromJson(loginArgs, LoginParams::class.java)
val obj = JSONObject(loginArgs)
if (obj.has("redirectUrl")) loginParams.redirectUrl = Uri.parse(obj.get("redirectUrl") as String?)
val loginCF = web3auth.login(loginParams)
// Log.d(loginParams.toString(), "#loginParams")
//Log.d("#loginParams", loginParams.toString())
val loginCF = web3auth.connectTo(loginParams)
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#login")
val loginResult: Web3AuthResponse = loginCF.get()
return gson.toJson(loginResult)
Expand Down Expand Up @@ -151,15 +149,15 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
}
}

"getPrivKey" -> {
val privKey = web3auth.getPrivkey()
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#getPrivKey")
"getPrivateKey" -> {
val privKey = web3auth.getPrivateKey()
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#getPrivateKey")
return privKey
}

"getEd25519PrivKey" -> {
val ed25519Key = web3auth.getEd25519PrivKey()
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#getEd25519PrivKey")
"getEd25519PrivateKey" -> {
val ed25519Key = web3auth.getEd25519PrivateKey()
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#getEd25519PrivateKey")
return ed25519Key
}

Expand Down Expand Up @@ -189,14 +187,13 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
}
}

"launchWalletServices" -> {
"showWalletUI" -> {
try {
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#launchWalletServices")
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#showWalletUI")
val wsArgs = call.arguments<String>() ?: return null
val wsParams = gson.fromJson(wsArgs, WalletServicesJson::class.java)
Log.d(wsParams.toString(), "#wsParams")
val launchWalletCF = web3auth.launchWalletServices(
wsParams.chainConfig,
val launchWalletCF = web3auth.showWalletUI(
wsParams.path
)
launchWalletCF.get()
Expand All @@ -213,8 +210,6 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
val loginArgs = call.arguments<String>() ?: return null
val loginParams = gson.fromJson(loginArgs, LoginParams::class.java)
val obj = JSONObject(loginArgs)
if (obj.has("redirectUrl")) loginParams.redirectUrl =
Uri.parse(obj.get("redirectUrl") as String?)
val setupMfaCF = web3auth.enableMFA(loginParams)
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#enableMFA")
return setupMfaCF.get()
Expand All @@ -241,12 +236,11 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,

"request" -> {
try {
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#signMessage")
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#request")
val requestArgs = call.arguments<String>() ?: return null
val reqParams = gson.fromJson(requestArgs, RequestJson::class.java)
Log.d(reqParams.toString(), "#reqParams")
val requestCF = web3auth.request(
reqParams.chainConfig,
reqParams.method,
convertListToJsonArray(reqParams.requestParams) ,
reqParams.path,
Expand All @@ -265,8 +259,6 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
val loginArgs = call.arguments<String>() ?: return null
val loginParams = gson.fromJson(loginArgs, LoginParams::class.java)
val obj = JSONObject(loginArgs)
if (obj.has("redirectUrl")) loginParams.redirectUrl =
Uri.parse(obj.get("redirectUrl") as String?)
val setupMfaCF = web3auth.manageMFA(loginParams)
Log.d("${Web3AuthFlutterPlugin::class.qualifiedName}", "#enableMFA")
return setupMfaCF.get()
Expand Down Expand Up @@ -301,13 +293,11 @@ class Web3AuthFlutterPlugin : FlutterPlugin, ActivityAware, MethodCallHandler,
}
@Keep
data class WalletServicesJson(
@Keep val chainConfig: ChainConfig,
@Keep val path: String? = "wallet"
)

@Keep
data class RequestJson(
@Keep val chainConfig: ChainConfig,
@Keep val method: String,
@Keep val requestParams: List<Any?>,
@Keep val path: String? = "wallet/request",
Expand Down
3 changes: 1 addition & 2 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<application
<application
android:label="web3auth_flutter_example"
android:name="${applicationName}"
tools:replace="android:name"
Expand Down
5 changes: 2 additions & 3 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ allprojects {
}

rootProject.buildDir = '../build'

subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) {
delete rootProject.buildDir
}

5 changes: 2 additions & 3 deletions example/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
https://github.com/Web3Auth/web3auth-flutter-sdk/pull/104/conflict?name=example%252Fandroid%252Fapp%252Fsrc%252Fmain%252FAndroidManifest.xml&ancestor_oid=ec00abe0c8ddb6dfa91343c66f24e48b431d1a15&base_oid=697fc9ac55830ca35e100ca84d4439da7ffddd85&head_oid=479557102c69887429d4fb9b8c21bf4760acb305distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip

distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-all.zip
4 changes: 2 additions & 2 deletions example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ pluginManagement {
}

plugins {
id "com.android.application" version "8.1.4" apply false
id "org.jetbrains.kotlin.android" version "1.9.24" apply false
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.2.2" apply false
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
}

include ":app"
44 changes: 35 additions & 9 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,29 +1,49 @@
PODS:
- AnalyticsSwiftCocoapod (1.8.0):
- JSONSafeEncoding (= 2.0.0)
- Sovran (= 1.1.1)
- BigInt (5.2.0)
- curvelib.swift (2.0.0)
- Flutter (1.0.0)
- JSONSafeEncoding (2.0.0)
- JWTDecode (3.3.0)
- KeychainSwift (20.0.0)
- TorusSessionManager (6.0.2):
- Sovran (1.1.1)
- Torus-fetchNodeDetails (8.0.1):
- BigInt (~> 5.2.0)
- Torus-utils (10.0.1):
- curvelib.swift (~> 2.0.0)
- Torus-fetchNodeDetails (~> 8.0.1)
- TorusSessionManager (6.1.0):
- curvelib.swift (~> 2.0.0)
- KeychainSwift (~> 20.0.0)
- Web3Auth (11.0.5):
- Web3Auth (12.0.1):
- AnalyticsSwiftCocoapod (~> 1.8.0)
- BigInt (~> 5.2.0)
- curvelib.swift (~> 2.0.0)
- JWTDecode (~> 3.3.0)
- KeychainSwift (~> 20.0.0)
- TorusSessionManager (~> 6.0.2)
- Torus-utils (~> 10.0.1)
- TorusSessionManager (~> 6.1.0)
- web3auth_flutter (2.0.1):
- Flutter
- Web3Auth (~> 11.0.5)
- Web3Auth (~> 12.0.1)

DEPENDENCIES:
- Flutter (from `Flutter`)
- web3auth_flutter (from `.symlinks/plugins/web3auth_flutter/ios`)

SPEC REPOS:
https://github.com/CocoaPods/Specs.git:
- AnalyticsSwiftCocoapod
- BigInt
- curvelib.swift
- JSONSafeEncoding
- JWTDecode
- KeychainSwift
- Sovran
- Torus-fetchNodeDetails
- Torus-utils
- TorusSessionManager
- Web3Auth

Expand All @@ -34,14 +54,20 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/web3auth_flutter/ios"

SPEC CHECKSUMS:
AnalyticsSwiftCocoapod: cc3e4d4e381a080c89a6f5f56845577c298bc627
BigInt: f668a80089607f521586bbe29513d708491ef2f7
curvelib.swift: b9223e5cac801effed8a5fe8968e952b3fe427a5
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
Flutter: cabc95a1d2626b1b06e7179b784ebcf0c0cde467
JSONSafeEncoding: 54722ebc4fe1482e3e60a8450e1287481e32dd8b
JWTDecode: 1ca6f765844457d0dd8690436860fecee788f631
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
TorusSessionManager: 3c47c2a4c4d6173a10006eb0af4b86317ee45ff8
Web3Auth: cf501e2bccf63d7a9746c0e53eb98cf143841a5c
web3auth_flutter: 79be94bbb719a1837c79e0c07e793abd64e11dd7
Sovran: f8212bb3855042a24689a73ea0219ca5295235da
Torus-fetchNodeDetails: 0ae97719263ee98f5bf5549a86464eea38a828f3
Torus-utils: 7c53a9c71663c2f458bfdcf1a380d7a5b88f9632
TorusSessionManager: cd2de693425cefb976c7bca42a45964297d8c2cc
Web3Auth: 5459b2d5bcdb150c5e84c7229639422cba684814
web3auth_flutter: 9c145c6b87ac77f1cbd2a016188ac9ec6162b243

PODFILE CHECKSUM: 1d58595b82b880200a7ded05da9181d30ef8c1b7

COCOAPODS: 1.14.2
COCOAPODS: 1.16.2
Loading