Skip to content

Commit f4efc99

Browse files
update examples to latest alpha
1 parent d2e599e commit f4efc99

File tree

39 files changed

+617
-554
lines changed

39 files changed

+617
-554
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ PODS:
99
- TorusSessionManager (6.0.1):
1010
- curvelib.swift (~> 2.0.0)
1111
- KeychainSwift (~> 20.0.0)
12-
- Web3Auth (10.0.1):
12+
- Web3Auth (11.0.0):
1313
- BigInt (~> 5.2.0)
1414
- curvelib.swift (~> 2.0.0)
1515
- KeychainSwift (~> 20.0.0)
1616
- TorusSessionManager (~> 6.0.1)
1717
- web3auth_flutter (2.0.1):
1818
- Flutter
19-
- Web3Auth (~> 10.0.1)
19+
- Web3Auth (~> 11.0.0)
2020

2121
DEPENDENCIES:
2222
- Flutter (from `Flutter`)
@@ -44,10 +44,10 @@ SPEC CHECKSUMS:
4444
curvelib.swift: b9223e5cac801effed8a5fe8968e952b3fe427a5
4545
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
4646
KeychainSwift: 0ce6a4d13f7228054d1a71bb1b500448fb2ab837
47-
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
47+
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
4848
TorusSessionManager: 9c9871718233dc020ab4fde9bdf37802f01dae10
49-
Web3Auth: c7fddb06065c213bf4fd8badd166201ab31cb29b
50-
web3auth_flutter: 816f64706f40f7fc08698c77e53cd3c7ad0736f3
49+
Web3Auth: 407db5f308ac801d6e110e53c482a28977c49516
50+
web3auth_flutter: f5d75a5b84c082601b617ff018f616d230083a6d
5151

5252
PODFILE CHECKSUM: 775997f741c536251164e3eacf6e34abf2eb7a17
5353

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)