Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flutter] Update examples to v6 #1303

Merged
merged 4 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<category android:name="android.intent.category.BROWSABLE" />

<!-- Accept URIs: {YOUR_APP_PACKAGE_NAME}://* -->
<data android:scheme="w3a" android:host="com.example.w3aflutter" android:path="/auth" />
<data android:scheme="w3a" android:host="com.example.w3aflutter"/>
<!-- Accept URIs: w3a://com.example.w3aflutter/auth -->
</intent-filter>
</activity>
Expand Down
26 changes: 13 additions & 13 deletions flutter/flutter-aggregate-verifier-example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
PODS:
- BigInt (5.2.0)
- curvelib.swift (1.0.1)
- curvelib.swift (2.0.0)
- Flutter (1.0.0)
- KeychainSwift (20.0.0)
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- TorusSessionManager (4.0.2):
- curvelib.swift (~> 1.0.1)
- TorusSessionManager (6.0.1):
- curvelib.swift (~> 2.0.0)
- KeychainSwift (~> 20.0.0)
- Web3Auth (9.0.0):
- Web3Auth (11.0.1):
- BigInt (~> 5.2.0)
- curvelib.swift (~> 1.0.1)
- curvelib.swift (~> 2.0.0)
- KeychainSwift (~> 20.0.0)
- TorusSessionManager (~> 4.0.2)
- TorusSessionManager (~> 6.0.1)
- web3auth_flutter (2.0.1):
- Flutter
- Web3Auth (~> 9.0.0)
- Web3Auth (~> 11.0.1)

DEPENDENCIES:
- Flutter (from `Flutter`)
Expand All @@ -41,14 +41,14 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
BigInt: f668a80089607f521586bbe29513d708491ef2f7
curvelib.swift: d0746ae82bee34016c06da3567a97e493b3c979f
curvelib.swift: b9223e5cac801effed8a5fe8968e952b3fe427a5
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
TorusSessionManager: 05a1a8f3265d0949a1a342c4ba2c52882445b614
Web3Auth: 086b5152a43df347ceff196c0ce67f6330838884
web3auth_flutter: bc5ffefe573c72f7fb1814573269952b045b7b22
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
TorusSessionManager: 9c9871718233dc020ab4fde9bdf37802f01dae10
Web3Auth: 5defaf109aa7583d4f9b198daa99b4f24f25038a
web3auth_flutter: 5ecf271e85c16e999bfc774ff9cd4fab6d4e91b6

PODFILE CHECKSUM: 775997f741c536251164e3eacf6e34abf2eb7a17

COCOAPODS: 1.14.3
COCOAPODS: 1.15.2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
12 changes: 8 additions & 4 deletions flutter/flutter-aggregate-verifier-example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {

Uri redirectUrl;
if (Platform.isAndroid) {
redirectUrl = Uri.parse('w3a://com.example.w3aflutter/auth');
redirectUrl = Uri.parse('w3a://com.example.w3aflutter');
} else if (Platform.isIOS) {
redirectUrl = Uri.parse('com.example.w3aflutter://openlogin');
} else {
Expand Down Expand Up @@ -105,7 +105,11 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
),
);

await Web3AuthFlutter.initialize();
try {
await Web3AuthFlutter.initialize();
} catch (e) {
log(e.toString());
}

final String res = await Web3AuthFlutter.getPrivKey();
log(res);
Expand All @@ -121,7 +125,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Web3Auth Flutter Auth0 Example'),
title: const Text('Web3Auth Flutter Aggregate Example'),
),
body: SingleChildScrollView(
child: Center(
Expand Down Expand Up @@ -154,7 +158,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
height: 10,
),
const Text(
'Welcome to Web3Auth Flutter Auth0 Example',
'Welcome to Web3Auth Flutter Aggregate Example',
style: TextStyle(fontSize: 14),
),
const SizedBox(
Expand Down
Loading
Loading