Skip to content

Commit 90b4dc3

Browse files
authored
Merge pull request #1303 from Web3Auth/flutter-v6
[Flutter] Update examples to v6
2 parents 8a2acfb + 31fb552 commit 90b4dc3

File tree

40 files changed

+622
-587
lines changed

40 files changed

+622
-587
lines changed

flutter/flutter-aggregate-verifier-example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<category android:name="android.intent.category.BROWSABLE" />
3232

3333
<!-- Accept URIs: {YOUR_APP_PACKAGE_NAME}://* -->
34-
<data android:scheme="w3a" android:host="com.example.w3aflutter" android:path="/auth" />
34+
<data android:scheme="w3a" android:host="com.example.w3aflutter"/>
3535
<!-- Accept URIs: w3a://com.example.w3aflutter/auth -->
3636
</intent-filter>
3737
</activity>

flutter/flutter-aggregate-verifier-example/ios/Podfile.lock

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
PODS:
22
- BigInt (5.2.0)
3-
- curvelib.swift (1.0.1)
3+
- curvelib.swift (2.0.0)
44
- Flutter (1.0.0)
55
- KeychainSwift (20.0.0)
66
- shared_preferences_foundation (0.0.1):
77
- Flutter
88
- FlutterMacOS
9-
- TorusSessionManager (4.0.2):
10-
- curvelib.swift (~> 1.0.1)
9+
- TorusSessionManager (6.0.1):
10+
- curvelib.swift (~> 2.0.0)
1111
- KeychainSwift (~> 20.0.0)
12-
- Web3Auth (9.0.0):
12+
- Web3Auth (11.0.1):
1313
- BigInt (~> 5.2.0)
14-
- curvelib.swift (~> 1.0.1)
14+
- curvelib.swift (~> 2.0.0)
1515
- KeychainSwift (~> 20.0.0)
16-
- TorusSessionManager (~> 4.0.2)
16+
- TorusSessionManager (~> 6.0.1)
1717
- web3auth_flutter (2.0.1):
1818
- Flutter
19-
- Web3Auth (~> 9.0.0)
19+
- Web3Auth (~> 11.0.1)
2020

2121
DEPENDENCIES:
2222
- Flutter (from `Flutter`)
@@ -41,14 +41,14 @@ EXTERNAL SOURCES:
4141

4242
SPEC CHECKSUMS:
4343
BigInt: f668a80089607f521586bbe29513d708491ef2f7
44-
curvelib.swift: d0746ae82bee34016c06da3567a97e493b3c979f
44+
curvelib.swift: b9223e5cac801effed8a5fe8968e952b3fe427a5
4545
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
4646
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
47-
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
48-
TorusSessionManager: 05a1a8f3265d0949a1a342c4ba2c52882445b614
49-
Web3Auth: 086b5152a43df347ceff196c0ce67f6330838884
50-
web3auth_flutter: bc5ffefe573c72f7fb1814573269952b045b7b22
47+
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
48+
TorusSessionManager: 9c9871718233dc020ab4fde9bdf37802f01dae10
49+
Web3Auth: 5defaf109aa7583d4f9b198daa99b4f24f25038a
50+
web3auth_flutter: 5ecf271e85c16e999bfc774ff9cd4fab6d4e91b6
5151

5252
PODFILE CHECKSUM: 775997f741c536251164e3eacf6e34abf2eb7a17
5353

54-
COCOAPODS: 1.14.3
54+
COCOAPODS: 1.15.2

flutter/flutter-aggregate-verifier-example/ios/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

flutter/flutter-aggregate-verifier-example/lib/main.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
5858

5959
Uri redirectUrl;
6060
if (Platform.isAndroid) {
61-
redirectUrl = Uri.parse('w3a://com.example.w3aflutter/auth');
61+
redirectUrl = Uri.parse('w3a://com.example.w3aflutter');
6262
} else if (Platform.isIOS) {
6363
redirectUrl = Uri.parse('com.example.w3aflutter://openlogin');
6464
} else {
@@ -105,7 +105,11 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
105105
),
106106
);
107107

108-
await Web3AuthFlutter.initialize();
108+
try {
109+
await Web3AuthFlutter.initialize();
110+
} catch (e) {
111+
log(e.toString());
112+
}
109113

110114
final String res = await Web3AuthFlutter.getPrivKey();
111115
log(res);
@@ -121,7 +125,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
121125
return MaterialApp(
122126
home: Scaffold(
123127
appBar: AppBar(
124-
title: const Text('Web3Auth Flutter Auth0 Example'),
128+
title: const Text('Web3Auth Flutter Aggregate Example'),
125129
),
126130
body: SingleChildScrollView(
127131
child: Center(
@@ -154,7 +158,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
154158
height: 10,
155159
),
156160
const Text(
157-
'Welcome to Web3Auth Flutter Auth0 Example',
161+
'Welcome to Web3Auth Flutter Aggregate Example',
158162
style: TextStyle(fontSize: 14),
159163
),
160164
const SizedBox(

0 commit comments

Comments
 (0)