Skip to content

Commit

Permalink
Merge pull request #96 from Web3Auth/feat/update_pnp_swift_dep
Browse files Browse the repository at this point in the history
swift pnp dependency updated
  • Loading branch information
chaitanyapotti authored Dec 11, 2024
2 parents 9becc15 + 5064ee6 commit 924c75b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Add `web3auth_flutter` as a dependency to your `pubspec.yaml` file.

```yml
dependencies:
web3auth_flutter: ^6.0.1
web3auth_flutter: ^6.1.0
```
or
Expand Down
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.0.1'
implementation 'com.github.web3auth:web3auth-android-sdk:9.0.2'
implementation 'com.google.code.gson:gson:2.10.1'
}
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ PODS:
- TorusSessionManager (6.0.1):
- curvelib.swift (~> 2.0.0)
- KeychainSwift (~> 20.0.0)
- Web3Auth (10.0.1):
- Web3Auth (11.0.1):
- BigInt (~> 5.2.0)
- curvelib.swift (~> 2.0.0)
- KeychainSwift (~> 20.0.0)
- TorusSessionManager (~> 6.0.1)
- web3auth_flutter (2.0.1):
- Flutter
- Web3Auth (~> 10.0.1)
- Web3Auth (~> 11.0.1)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -39,8 +39,8 @@ SPEC CHECKSUMS:
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
TorusSessionManager: 9c9871718233dc020ab4fde9bdf37802f01dae10
Web3Auth: c7fddb06065c213bf4fd8badd166201ab31cb29b
web3auth_flutter: 816f64706f40f7fc08698c77e53cd3c7ad0736f3
Web3Auth: 5defaf109aa7583d4f9b198daa99b4f24f25038a
web3auth_flutter: 5ecf271e85c16e999bfc774ff9cd4fab6d4e91b6

PODFILE CHECKSUM: 1d58595b82b880200a7ded05da9181d30ef8c1b7

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ packages:
path: ".."
relative: true
source: path
version: "5.0.4"
version: "6.1.0"
web3dart:
dependency: "direct main"
description:
Expand Down
13 changes: 10 additions & 3 deletions ios/Classes/SwiftWeb3AuthFlutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,15 @@ public class SwiftWeb3AuthFlutterPlugin: NSObject, FlutterPlugin {
}
case "enableMFA":
do {
let enableMFAResult = try await web3auth?.enableMFA()
result(enableMFAResult)
let loginParams = try? decoder.decode(W3ALoginParams.self, from: data)

if let params = loginParams {
let enableMFAResult = try await web3auth?.enableMFA(params)
result(enableMFAResult)
} else {
let enableMFAResult = try await web3auth?.enableMFA()
result(enableMFAResult)
}
return
} catch {
result(FlutterError(
Expand Down Expand Up @@ -186,7 +193,7 @@ public class SwiftWeb3AuthFlutterPlugin: NSObject, FlutterPlugin {
code: "RequestFailedFailedException",
message: "Web3Auth request launch failed",
details: error.localizedDescription))
return
return
}
case "getUserInfo":
var resultMap: String = ""
Expand Down
2 changes: 1 addition & 1 deletion ios/web3auth_flutter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Flutter SDK for Torus Web3Auth (OpenLogin)
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'Web3Auth', '~> 10.0.1'
s.dependency 'Web3Auth', '~> 11.0.1'
s.platform = :ios, '14.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: web3auth_flutter
description: Flutter SDK for Torus Web3Auth (Web3Auth)
version: 6.0.1
version: 6.1.0
homepage: https://web3auth.io
repository: https://github.com/Web3Auth/web3auth-flutter-sdk.git

Expand Down

0 comments on commit 924c75b

Please sign in to comment.