Skip to content

Commit 83711b4

Browse files
chore: pos metadata (#263)
* chore: changed metadata, added appicon in repo root * chore: changed metadata icon path * chore: changed app version
1 parent daa48fc commit 83711b4

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

dapps/pos-app/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"permissions": [
3939
"android.permission.NFC"
4040
],
41-
"versionCode": 4
41+
"versionCode": 5
4242
},
4343
"web": {
4444
"output": "static"

dapps/pos-app/app/_layout.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { POSProvider } from "@/context/POSContext";
1616
import { useColorScheme } from "@/hooks/use-color-scheme";
1717
import { useInitializePOS } from "@/hooks/use-initialize-pos";
1818
import { useTheme } from "@/hooks/use-theme-color";
19-
import { appKit, wagmiAdapter } from "@/utils/appkit";
19+
import { appKit, posClientMetadata, wagmiAdapter } from "@/utils/appkit";
2020
import {
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
},

dapps/pos-app/icon.png

462 KB
Loading

dapps/pos-app/utils/appkit.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ import { storage } from "./storage";
1111

1212
const 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+
1422
export 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
});

0 commit comments

Comments
 (0)