Skip to content

Commit 4f51201

Browse files
[SDK] Update @mobile-wallet-protocol/client to 1.0.0 (#6527)
1 parent a0cee48 commit 4f51201

File tree

5 files changed

+483
-260
lines changed

5 files changed

+483
-260
lines changed

.changeset/evil-cases-read.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@thirdweb-dev/react-native-adapter": patch
3+
"thirdweb": patch
4+
---
5+
6+
Update dependencies

packages/react-native-adapter/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@
2323
},
2424
"./package.json": "./package.json"
2525
},
26-
"files": [
27-
"dist/*",
28-
"src/*"
29-
],
26+
"files": ["dist/*", "src/*"],
3027
"dependencies": {
3128
"@aws-sdk/client-kms": "3.592.0",
3229
"@aws-sdk/client-lambda": "3.592.0",
3330
"@aws-sdk/credential-providers": "3.592.0",
34-
"@mobile-wallet-protocol/client": "0.1.2"
31+
"@mobile-wallet-protocol/client": "1.0.0"
3532
},
3633
"devDependencies": {
3734
"rimraf": "6.0.1"

packages/thirdweb/package.json

Lines changed: 23 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -137,66 +137,26 @@
137137
},
138138
"typesVersions": {
139139
"*": {
140-
"adapters/*": [
141-
"./dist/types/exports/adapters/*.d.ts"
142-
],
143-
"auth": [
144-
"./dist/types/exports/auth.d.ts"
145-
],
146-
"chains": [
147-
"./dist/types/exports/chains.d.ts"
148-
],
149-
"contract": [
150-
"./dist/types/exports/contract.d.ts"
151-
],
152-
"deploys": [
153-
"./dist/types/exports/deploys.d.ts"
154-
],
155-
"event": [
156-
"./dist/types/exports/event.d.ts"
157-
],
158-
"extensions/*": [
159-
"./dist/types/exports/extensions/*.d.ts"
160-
],
161-
"pay": [
162-
"./dist/types/exports/pay.d.ts"
163-
],
164-
"react": [
165-
"./dist/types/exports/react.d.ts"
166-
],
167-
"react-native": [
168-
"./dist/types/exports/react-native.d.ts"
169-
],
170-
"rpc": [
171-
"./dist/types/exports/rpc.d.ts"
172-
],
173-
"storage": [
174-
"./dist/types/exports/storage.d.ts"
175-
],
176-
"transaction": [
177-
"./dist/types/exports/transaction.d.ts"
178-
],
179-
"utils": [
180-
"./dist/types/exports/utils.d.ts"
181-
],
182-
"wallets": [
183-
"./dist/types/exports/wallets.d.ts"
184-
],
185-
"wallets/*": [
186-
"./dist/types/exports/wallets/*.d.ts"
187-
],
188-
"modules": [
189-
"./dist/types/exports/modules.d.ts"
190-
],
191-
"social": [
192-
"./dist/types/exports/social.d.ts"
193-
],
194-
"ai": [
195-
"./dist/types/exports/ai.d.ts"
196-
],
197-
"bridge": [
198-
"./dist/types/exports/bridge.d.ts"
199-
]
140+
"adapters/*": ["./dist/types/exports/adapters/*.d.ts"],
141+
"auth": ["./dist/types/exports/auth.d.ts"],
142+
"chains": ["./dist/types/exports/chains.d.ts"],
143+
"contract": ["./dist/types/exports/contract.d.ts"],
144+
"deploys": ["./dist/types/exports/deploys.d.ts"],
145+
"event": ["./dist/types/exports/event.d.ts"],
146+
"extensions/*": ["./dist/types/exports/extensions/*.d.ts"],
147+
"pay": ["./dist/types/exports/pay.d.ts"],
148+
"react": ["./dist/types/exports/react.d.ts"],
149+
"react-native": ["./dist/types/exports/react-native.d.ts"],
150+
"rpc": ["./dist/types/exports/rpc.d.ts"],
151+
"storage": ["./dist/types/exports/storage.d.ts"],
152+
"transaction": ["./dist/types/exports/transaction.d.ts"],
153+
"utils": ["./dist/types/exports/utils.d.ts"],
154+
"wallets": ["./dist/types/exports/wallets.d.ts"],
155+
"wallets/*": ["./dist/types/exports/wallets/*.d.ts"],
156+
"modules": ["./dist/types/exports/modules.d.ts"],
157+
"social": ["./dist/types/exports/social.d.ts"],
158+
"ai": ["./dist/types/exports/ai.d.ts"],
159+
"bridge": ["./dist/types/exports/bridge.d.ts"]
200160
}
201161
},
202162
"browser": {
@@ -241,7 +201,7 @@
241201
"@aws-sdk/client-lambda": "^3",
242202
"@aws-sdk/credential-providers": "^3",
243203
"@coinbase/wallet-mobile-sdk": "^1",
244-
"@mobile-wallet-protocol/client": "0.1.1",
204+
"@mobile-wallet-protocol/client": "^1",
245205
"@react-native-async-storage/async-storage": "^1 || ^2",
246206
"ethers": "^5 || ^6",
247207
"expo-linking": "^6",
@@ -344,7 +304,7 @@
344304
"@chromatic-com/storybook": "3.2.6",
345305
"@codspeed/vitest-plugin": "4.0.0",
346306
"@coinbase/wallet-mobile-sdk": "1.1.2",
347-
"@mobile-wallet-protocol/client": "0.1.2",
307+
"@mobile-wallet-protocol/client": "1.0.0",
348308
"@react-native-async-storage/async-storage": "2.1.2",
349309
"@size-limit/preset-big-lib": "11.2.0",
350310
"@storybook/addon-essentials": "8.6.4",
@@ -374,7 +334,7 @@
374334
"prettier": "3.5.3",
375335
"react": "19.0.0",
376336
"react-dom": "19.0.0",
377-
"react-native": "0.76.6",
337+
"react-native": "0.78.1",
378338
"react-native-aes-gcm-crypto": "0.2.2",
379339
"react-native-passkey": "3.1.0",
380340
"react-native-quick-crypto": "0.7.8",

packages/thirdweb/src/wallets/coinbase/coinbase-mobile.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ export async function getCoinbaseMobileProvider(
1717
mobileProvider = (await initSmartWalletProvider(
1818
options,
1919
)) as unknown as ProviderInterface;
20-
const ExpoLinking = await import("expo-linking");
21-
const { handleResponse } = await import("@mobile-wallet-protocol/client");
22-
ExpoLinking.addEventListener("url", ({ url }) => {
23-
handleResponse(url);
24-
});
2520
} else {
2621
// otherwise, use the coinbase app provider
2722
// TODO: remove this path once the new @mobile-wallet-protocol/client supports it
@@ -55,10 +50,10 @@ async function initSmartWalletProvider(
5550
}
5651
const sdk = new EIP1193Provider({
5752
metadata: {
58-
appName: options?.appMetadata?.name || "thirdweb powered app",
59-
appChainIds: options?.chains?.map((c) => c.id),
60-
appDeeplinkUrl,
61-
appLogoUrl: options?.appMetadata?.logoUrl,
53+
name: options?.appMetadata?.name || "thirdweb powered app",
54+
chainIds: options?.chains?.map((c) => c.id),
55+
customScheme: appDeeplinkUrl,
56+
logoUrl: options?.appMetadata?.logoUrl,
6257
},
6358
wallet: Wallets.CoinbaseSmartWallet, // TODO support both smart and EOA once the SDK supports it
6459
});

0 commit comments

Comments
 (0)