diff --git a/android/build.gradle b/android/build.gradle index 67025aa..649343e 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -49,7 +49,7 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' - implementation 'com.github.Web3Auth:single-factor-auth-android:0.2.0' - implementation 'org.torusresearch:fetch-node-details-java:3.3.0' + implementation 'com.github.Web3Auth:single-factor-auth-android:0.3.0' + implementation 'org.torusresearch:fetch-node-details-java:5.0.0' implementation 'com.google.code.gson:gson:2.9.1' } diff --git a/android/src/main/kotlin/com/web3auth/single_factor_auth_flutter/SingleFactorAuthFlutterPlugin.kt b/android/src/main/kotlin/com/web3auth/single_factor_auth_flutter/SingleFactorAuthFlutterPlugin.kt index 3137511..1c2a798 100644 --- a/android/src/main/kotlin/com/web3auth/single_factor_auth_flutter/SingleFactorAuthFlutterPlugin.kt +++ b/android/src/main/kotlin/com/web3auth/single_factor_auth_flutter/SingleFactorAuthFlutterPlugin.kt @@ -16,7 +16,7 @@ import io.flutter.plugin.common.MethodChannel.MethodCallHandler import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch -import org.torusresearch.fetchnodedetails.types.TorusNetwork +import org.torusresearch.fetchnodedetails.types.Web3AuthNetwork /** SingleFactorAuthFlutterPlugin */ class SingleFactorAuthFlutterPlugin : FlutterPlugin, MethodCallHandler { @@ -41,14 +41,14 @@ class SingleFactorAuthFlutterPlugin : FlutterPlugin, MethodCallHandler { channel.setMethodCallHandler(null) } - private fun getNetwork(network: String): TorusNetwork { + private fun getNetwork(network: String): Web3AuthNetwork { return when (network) { - "mainnet" -> TorusNetwork.MAINNET - "testnet" -> TorusNetwork.TESTNET - "aqua" -> TorusNetwork.AQUA - "cyan" -> TorusNetwork.CYAN - "celeste" -> TorusNetwork.CELESTE - else -> TorusNetwork.MAINNET + "mainnet" -> Web3AuthNetwork.MAINNET + "testnet" -> Web3AuthNetwork.TESTNET + "aqua" -> Web3AuthNetwork.AQUA + "cyan" -> Web3AuthNetwork.CYAN + "celeste" -> Web3AuthNetwork.CELESTE + else -> Web3AuthNetwork.MAINNET } } diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 5deb3e3..dfaa5ad 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -6,8 +6,8 @@ PODS: - KeychainSwift (20.0.0) - single_factor_auth_flutter (0.0.1): - Flutter - - SingleFactorAuth (~> 5.0.0) - - SingleFactorAuth (5.0.0): + - SingleFactorAuth (= 6.0.0) + - SingleFactorAuth (6.0.0): - curvelib.swift (~> 1.0.1) - Torus-fetchNodeDetails (~> 6.0.1) - Torus-utils (~> 8.1.0) @@ -49,12 +49,12 @@ SPEC CHECKSUMS: curvelib.swift: d0746ae82bee34016c06da3567a97e493b3c979f Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7 KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837 - single_factor_auth_flutter: 32a02b25ceb8405f3cedce4b675cfb906b8cb099 - SingleFactorAuth: ee61a0969705e016871d0fb1fa65dd4a22e08316 + single_factor_auth_flutter: c15c7a7a225399326d38c85de60ba3e1d5c5f82a + SingleFactorAuth: 2c25b70f7faac954fc15fe8f9598f80b09ca450e Torus-fetchNodeDetails: 6c349f47cbca36a4b3f276fe26d03c1b39b20949 Torus-utils: 3ec4dba5ea50935ab129077adef4207af5a00225 TorusSessionManager: 05a1a8f3265d0949a1a342c4ba2c52882445b614 PODFILE CHECKSUM: d5c402b2f74646de5c7f24c1231886362b49b38f -COCOAPODS: 1.14.2 +COCOAPODS: 1.14.3 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index e98ee8a..e981573 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -158,7 +158,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { diff --git a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a6b826d..5e31d3d 100644 --- a/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ { await _singleFactorAuthFlutterPlugin.initialize(); if (torusKey != null) { setState(() { - _result = "Private Key : ${torusKey.privateKey}"; + _result = + "Public Add : ${torusKey.publicAddress} , Private Key : ${torusKey.privateKey}"; }); } } @@ -112,7 +113,7 @@ class _MyAppState extends State { height: 20, ), ElevatedButton( - onPressed: _getKey(getAggregrateKey), + onPressed: _getKey(getKey), child: const Text('GetTorusKey'), ), ElevatedButton( @@ -138,7 +139,8 @@ class _MyAppState extends State { try { final TorusKey response = await method(); setState(() { - _result = "Private Key : ${response.privateKey}"; + _result = + "Public Add : ${response.publicAddress} , Private Key : ${response.privateKey}"; log(response.publicAddress); }); } on MissingParamException catch (error) { diff --git a/ios/single_factor_auth_flutter.podspec b/ios/single_factor_auth_flutter.podspec index 2305028..b441109 100644 --- a/ios/single_factor_auth_flutter.podspec +++ b/ios/single_factor_auth_flutter.podspec @@ -15,7 +15,7 @@ A new Flutter plugin project. s.source = { :path => '.' } s.source_files = 'Classes/**/*' s.dependency 'Flutter' - s.dependency 'SingleFactorAuth', '~> 5.0.0' + s.dependency 'SingleFactorAuth', '6.0.0' s.platform = :ios, '14.0' # Flutter.framework does not contain a i386 slice.