Skip to content

Commit 924c75b

Browse files
authoredDec 11, 2024
Merge pull request #96 from Web3Auth/feat/update_pnp_swift_dep
swift pnp dependency updated
2 parents 9becc15 + 5064ee6 commit 924c75b

7 files changed

+19
-12
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Add `web3auth_flutter` as a dependency to your `pubspec.yaml` file.
3737

3838
```yml
3939
dependencies:
40-
web3auth_flutter: ^6.0.1
40+
web3auth_flutter: ^6.1.0
4141
```
4242
4343
or

‎android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ android {
5151
dependencies {
5252
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
5353
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
54-
implementation 'com.github.web3auth:web3auth-android-sdk:9.0.1'
54+
implementation 'com.github.web3auth:web3auth-android-sdk:9.0.2'
5555
implementation 'com.google.code.gson:gson:2.10.1'
5656
}

‎example/ios/Podfile.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ PODS:
66
- TorusSessionManager (6.0.1):
77
- curvelib.swift (~> 2.0.0)
88
- KeychainSwift (~> 20.0.0)
9-
- Web3Auth (10.0.1):
9+
- Web3Auth (11.0.1):
1010
- BigInt (~> 5.2.0)
1111
- curvelib.swift (~> 2.0.0)
1212
- KeychainSwift (~> 20.0.0)
1313
- TorusSessionManager (~> 6.0.1)
1414
- web3auth_flutter (2.0.1):
1515
- Flutter
16-
- Web3Auth (~> 10.0.1)
16+
- Web3Auth (~> 11.0.1)
1717

1818
DEPENDENCIES:
1919
- Flutter (from `Flutter`)
@@ -39,8 +39,8 @@ SPEC CHECKSUMS:
3939
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
4040
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
4141
TorusSessionManager: 9c9871718233dc020ab4fde9bdf37802f01dae10
42-
Web3Auth: c7fddb06065c213bf4fd8badd166201ab31cb29b
43-
web3auth_flutter: 816f64706f40f7fc08698c77e53cd3c7ad0736f3
42+
Web3Auth: 5defaf109aa7583d4f9b198daa99b4f24f25038a
43+
web3auth_flutter: 5ecf271e85c16e999bfc774ff9cd4fab6d4e91b6
4444

4545
PODFILE CHECKSUM: 1d58595b82b880200a7ded05da9181d30ef8c1b7
4646

‎example/pubspec.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ packages:
350350
path: ".."
351351
relative: true
352352
source: path
353-
version: "5.0.4"
353+
version: "6.1.0"
354354
web3dart:
355355
dependency: "direct main"
356356
description:

‎ios/Classes/SwiftWeb3AuthFlutterPlugin.swift

+10-3
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,15 @@ public class SwiftWeb3AuthFlutterPlugin: NSObject, FlutterPlugin {
147147
}
148148
case "enableMFA":
149149
do {
150-
let enableMFAResult = try await web3auth?.enableMFA()
151-
result(enableMFAResult)
150+
let loginParams = try? decoder.decode(W3ALoginParams.self, from: data)
151+
152+
if let params = loginParams {
153+
let enableMFAResult = try await web3auth?.enableMFA(params)
154+
result(enableMFAResult)
155+
} else {
156+
let enableMFAResult = try await web3auth?.enableMFA()
157+
result(enableMFAResult)
158+
}
152159
return
153160
} catch {
154161
result(FlutterError(
@@ -186,7 +193,7 @@ public class SwiftWeb3AuthFlutterPlugin: NSObject, FlutterPlugin {
186193
code: "RequestFailedFailedException",
187194
message: "Web3Auth request launch failed",
188195
details: error.localizedDescription))
189-
return
196+
return
190197
}
191198
case "getUserInfo":
192199
var resultMap: String = ""

‎ios/web3auth_flutter.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Flutter SDK for Torus Web3Auth (OpenLogin)
1515
s.source = { :path => '.' }
1616
s.source_files = 'Classes/**/*'
1717
s.dependency 'Flutter'
18-
s.dependency 'Web3Auth', '~> 10.0.1'
18+
s.dependency 'Web3Auth', '~> 11.0.1'
1919
s.platform = :ios, '14.0'
2020

2121
# Flutter.framework does not contain a i386 slice.

‎pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: web3auth_flutter
22
description: Flutter SDK for Torus Web3Auth (Web3Auth)
3-
version: 6.0.1
3+
version: 6.1.0
44
homepage: https://web3auth.io
55
repository: https://github.com/Web3Auth/web3auth-flutter-sdk.git
66

0 commit comments

Comments
 (0)
Please sign in to comment.