File tree Expand file tree Collapse file tree 4 files changed +15
-15
lines changed
Expand file tree Collapse file tree 4 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 3838 "permissions" : [
3939 " android.permission.NFC"
4040 ],
41- "versionCode" : 4
41+ "versionCode" : 5
4242 },
4343 "web" : {
4444 "output" : " static"
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import { POSProvider } from "@/context/POSContext";
1616import { useColorScheme } from "@/hooks/use-color-scheme" ;
1717import { useInitializePOS } from "@/hooks/use-initialize-pos" ;
1818import { useTheme } from "@/hooks/use-theme-color" ;
19- import { appKit , wagmiAdapter } from "@/utils/appkit" ;
19+ import { appKit , posClientMetadata , wagmiAdapter } from "@/utils/appkit" ;
2020import {
2121 getHeaderBackgroundColor ,
2222 getHeaderTintColor ,
@@ -56,13 +56,7 @@ export default Sentry.wrap(function RootLayout() {
5656 const { posClient, isInitialized } = useInitializePOS ( {
5757 projectId : process . env . EXPO_PUBLIC_PROJECT_ID ! ,
5858 deviceId : "1234567890" ,
59- metadata : {
60- merchantName : "WPay" ,
61- description : "WalletConnect Point of Sale" ,
62- logoIcon :
63- "https://raw.githubusercontent.com/reown-com/react-native-examples/refs/heads/main/dapps/pos-app/assets/images/icon.png" ,
64- url : "https://reown.com/appkit" ,
65- } ,
59+ metadata : posClientMetadata ,
6660 loggerOptions : {
6761 posLevel : __DEV__ ? "debug" : "silent" ,
6862 } ,
Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ import { storage } from "./storage";
1111
1212const projectId = process . env . EXPO_PUBLIC_PROJECT_ID ! ;
1313
14+ export const posClientMetadata = {
15+ merchantName : "WPay" ,
16+ description : "WalletConnect Point of Sale" ,
17+ logoIcon :
18+ "https://raw.githubusercontent.com/reown-com/react-native-examples/refs/heads/main/dapps/pos-app/icon.png" ,
19+ url : "https://walletconnect.com" ,
20+ } ;
21+
1422export const wagmiAdapter = new WagmiAdapter ( {
1523 projectId,
1624 networks : [ mainnet ] ,
@@ -38,11 +46,9 @@ export const appKit = createAppKit({
3846 swaps : false ,
3947 } ,
4048 metadata : {
41- name : "WPay" ,
42- description : "WalletConnect Point of Sale" ,
43- url : "https://reown.com/appkit" ,
44- icons : [
45- "https://raw.githubusercontent.com/reown-com/react-native-examples/refs/heads/main/dapps/pos-app/assets/images/icon.png" ,
46- ] ,
49+ name : posClientMetadata . merchantName ,
50+ description : posClientMetadata . description ,
51+ url : posClientMetadata . url ,
52+ icons : [ posClientMetadata . logoIcon ] ,
4753 } ,
4854} ) ;
You can’t perform that action at this time.
0 commit comments