Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Jun 21, 2024
1 parent dd44624 commit a8bed21
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
![WalletConnect.com](https://web3modal.com/images/hero-banner.png)

# WalletConnect Web3Modal

WalletConnect Web3Modal implementation for Flutter<br />
WalletConnect's Web3Modal SDK for Flutter<br />
Simple, intuitive wallet login. With this drop-in UI SDK, enable any wallet's users to seamlessly log in to your app and enjoy a smooth, unified experience.

<img src="https://web3modal.com/images/walletconnect-cloud-badge.png" width="300">
<img src="https://images.prismic.io/wallet-connect/ZmcC_Zm069VX1mgF_ak5.png">

## Documentation

For a full reference please check the [Official Documentation](https://docs.walletconnect.com/2.0/web3modal/flutter/installation)
For a full reference please check the [Official Documentation](https://docs.walletconnect.com/appkit/flutter/core/installation)

## Example

Expand Down
28 changes: 14 additions & 14 deletions example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@ import CoinbaseWalletSDK
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
if #available(iOS 13.0, *) {
if (try? CoinbaseWalletSDK.shared.handleResponse(url)) == true {
return true
if (CoinbaseWalletSDK.isConfigured == true) {
if (try? CoinbaseWalletSDK.shared.handleResponse(url)) == true {
return true
}
}
} else {
// Fallback on earlier versions
}
// handle other types of deep links
return false

return super.application(app, open: url, options: options)
}

override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
if #available(iOS 13.0, *) {
if let url = userActivity.webpageURL,
(try? CoinbaseWalletSDK.shared.handleResponse(url)) == true {
return true
if (CoinbaseWalletSDK.isConfigured == true) {
if let url = userActivity.webpageURL,
(try? CoinbaseWalletSDK.shared.handleResponse(url)) == true {
return true
}
}
} else {
// Fallback on earlier versions
}
// handle other types of deep links
return false

return super.application(application, continue: userActivity, restorationHandler: restorationHandler)
}
}
4 changes: 2 additions & 2 deletions example/lib/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ class _MyHomePageState extends State<MyHomePage> {
metadata: const PairingMetadata(
name: StringConstants.w3mPageTitleV3,
description: StringConstants.w3mPageTitleV3,
url: 'https://web3modal.com/',
url: 'https://walletconnect.com/appkit',
icons: [
'https://docs.walletconnect.com/assets/images/web3modalLogo-2cee77e07851ba0a710b56d03d4d09dd.png'
],
redirect: Redirect(
native: 'web3modalflutter://',
universal: 'https://web3modal.com',
universal: 'https://walletconnect.com/appkit',
),
),
enableAnalytics: true, // OPTIONAL - null by default
Expand Down

0 comments on commit a8bed21

Please sign in to comment.