From 3faa99450bf28cba2a56c160576804c19f11ea76 Mon Sep 17 00:00:00 2001 From: fosse Date: Wed, 24 Jan 2024 16:01:14 -0500 Subject: [PATCH] nano auth --- android/app/src/main/AndroidManifestBase.xml | 1 + ios/Runner/InfoBase.plist | 10 ++++++++++ lib/src/screens/root/root.dart | 2 ++ 3 files changed, 13 insertions(+) diff --git a/android/app/src/main/AndroidManifestBase.xml b/android/app/src/main/AndroidManifestBase.xml index 2dceca577..6b66bb370 100644 --- a/android/app/src/main/AndroidManifestBase.xml +++ b/android/app/src/main/AndroidManifestBase.xml @@ -57,6 +57,7 @@ + diff --git a/ios/Runner/InfoBase.plist b/ios/Runner/InfoBase.plist index 4f7036498..2a158821e 100644 --- a/ios/Runner/InfoBase.plist +++ b/ios/Runner/InfoBase.plist @@ -130,6 +130,16 @@ nano + + CFBundleTypeRole + Editor + CFBundleURLName + nanoauth + CFBundleURLSchemes + + nanoauth + + CFBundleTypeRole Viewer diff --git a/lib/src/screens/root/root.dart b/lib/src/screens/root/root.dart index b3d503162..ddf910d82 100644 --- a/lib/src/screens/root/root.dart +++ b/lib/src/screens/root/root.dart @@ -209,6 +209,8 @@ class RootState extends State with WidgetsBindingObserver { bool get isWalletConnectLink => launchUri?.authority == 'wc'; + bool get isNanoLink => launchUri?.authority == 'nanoauth'; + String? _getRouteToGo() { if (isWalletConnectLink) { if (isEVMCompatibleChain(widget.appStore.wallet!.type)) {