Skip to content

Commit

Permalink
chore: link-mode changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ignaciosantise committed Jul 3, 2024
1 parent eea0739 commit 487f1e8
Show file tree
Hide file tree
Showing 15 changed files with 316 additions and 297 deletions.
7 changes: 7 additions & 0 deletions dapps/W3MWagmi/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter>
<data android:scheme="https" android:host="lab.web3modal.com" android:pathPrefix="/appkit_rn" />
<data android:scheme="https" android:host="dev.lab.web3modal.com" android:pathPrefix="/appkit_rn" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
</activity>
</application>
</manifest>
4 changes: 2 additions & 2 deletions dapps/W3MWagmi/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ PODS:
- React-Mapbuffer (0.73.4):
- glog
- React-debug
- react-native-compat (2.13.1):
- react-native-compat (2.13.3-canary-c1f48b78a):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1486,7 +1486,7 @@ SPEC CHECKSUMS:
React-jsinspector: 9ac353eccf6ab54d1e0a33862ba91221d1e88460
React-logger: 0a57b68dd2aec7ff738195f081f0520724b35dab
React-Mapbuffer: 63913773ed7f96b814a2521e13e6d010282096ad
react-native-compat: bb0756de08af94abed964f81bbd18ff6ba514873
react-native-compat: b15a856911c9f29f75b046522905d409ec0cfebc
react-native-config: 86038147314e2e6d10ea9972022aa171e6b1d4d8
react-native-get-random-values: a6ea6a8a65dc93e96e24a11105b1a9c8cfe1d72a
react-native-mmkv: e97c0c79403fb94577e5d902ab1ebd42b0715b43
Expand Down
20 changes: 14 additions & 6 deletions dapps/W3MWagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"@react-navigation/native-stack": "6.9.26",
"@sentry/react-native": "5.20.0",
"@tanstack/react-query": "5.37.1",
"@walletconnect/react-native-compat": "2.13.1",
"@web3modal/coinbase-wagmi-react-native": "^2.0.0-alpha.4",
"@web3modal/email-wagmi-react-native": "^2.0.0-alpha.4",
"@web3modal/wagmi-react-native": "^2.0.0-alpha.4",
"@walletconnect/react-native-compat": "2.13.3-canary-c1f48b78a",
"@web3modal/coinbase-wagmi-react-native": "2.0.0-alpha.4",
"@web3modal/email-wagmi-react-native": "2.0.0-alpha.4",
"@web3modal/wagmi-react-native": "2.0.0-alpha.4",
"expo": "^50.0.0",
"react": "18.2.0",
"react-native": "0.73.4",
Expand All @@ -38,8 +38,16 @@
"react-native-screens": "~3.29.0",
"react-native-svg": "14.1.0",
"react-native-webview": "13.8.2",
"viem": "2.12.1",
"wagmi": "2.9.6"
"viem": "2.16.3",
"wagmi": "2.10.7"
},
"resolutions": {
"@walletconnect/utils": "2.13.3-canary-c1f48b78a",
"@walletconnect/core": "2.13.3-canary-c1f48b78a",
"@walletconnect/sign-client": "2.13.3-canary-c1f48b78a",
"@walletconnect/types": "2.13.3-canary-c1f48b78a",
"@walletconnect/ethereum-provider": "2.13.3-canary-c1f48b78a",
"@walletconnect/universal-provider": "2.13.3-canary-c1f48b78a"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
8 changes: 5 additions & 3 deletions dapps/W3MWagmi/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ const projectId = Config.ENV_PROJECT_ID;

// 2. Create config
const metadata = {
name: 'Web3Modal + wagmi',
description: 'Web3Modal + wagmi',
url: 'https://web3modal.com',
name: 'Appkit + wagmi',
description: 'Appkit + wagmi',
url: 'https://walletconnect.com',
icons: ['https://avatars.githubusercontent.com/u/37784886'],
redirect: {
native: 'w3mwagmisample://',
universal: 'https://lab.web3modal.com/appkit_rn',
linkMode: true,
},
};

Expand Down
2 changes: 1 addition & 1 deletion dapps/W3MWagmi/src/screens/Connections/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function ConnectionsScreen() {
return (
<FlexView flexGrow={1} justifyContent="center" alignItems="center">
<Text style={styles.title} center variant="large-600">
Web3Modal + wagmi
Appkit + wagmi
</Text>
<View style={styles.buttonContainer}>
<W3mButton balance="show" />
Expand Down
6 changes: 6 additions & 0 deletions dapps/W3MWagmi/src/utils/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ export const getCustomWallets = () => {
image_url:
'https://docs.walletconnect.com/assets/images/web3walletLogo-54d3b546146931ceaf47a3500868a73a.png',
mobile_link: 'rn-web3wallet://',
link_mode: 'https://dev.lab.web3modal.com/walletkit_rn',
},
{
id: 'flutter-wallet',
name: 'Wallet(Flutter)',
image_url:
'https://docs.walletconnect.com/assets/images/web3walletLogo-54d3b546146931ceaf47a3500868a73a.png',
mobile_link: 'wcflutterwallet://',
link_mode: undefined,
},
];

Expand All @@ -25,6 +27,8 @@ export const getCustomWallets = () => {
image_url:
'https://docs.walletconnect.com/assets/images/web3walletLogo-54d3b546146931ceaf47a3500868a73a.png',
mobile_link: 'kotlin-web3wallet://',
link_mode:
'https://web3modal-laboratory-git-chore-kotlin-assetlinks-walletconnect1.vercel.app/wallet',
});
} else if (Platform.OS === 'ios') {
wallets.push({
Expand All @@ -33,7 +37,9 @@ export const getCustomWallets = () => {
image_url:
'https://docs.walletconnect.com/assets/images/web3walletLogo-54d3b546146931ceaf47a3500868a73a.png',
mobile_link: 'walletapp://',
link_mode: 'https://lab.web3modal.com/wallet',
});
}

return wallets;
};
Loading

0 comments on commit 487f1e8

Please sign in to comment.