Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit d3658ff

Browse files
committed
chore(app): update and re-patch deps
1 parent c4cfd1b commit d3658ff

File tree

124 files changed

+615
-682
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+615
-682
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
11
diff --git a/lib/BleTransport.d.ts b/lib/BleTransport.d.ts
2-
index 8c4a245a1c1d886fd0d96d5f5ac2393f5cddb6df..844c9c1add8e3b70fdb8f8e320d1274a18ed2f73 100644
2+
index c33bae411b2b4dd9057c25f890b6a29086f1f530..b5511f05900630bed350212eeebf8a10d9fdc100 100644
33
--- a/lib/BleTransport.d.ts
44
+++ b/lib/BleTransport.d.ts
5-
@@ -5,8 +5,9 @@ import { DeviceId, Device, Characteristic } from "react-native-ble-plx";
6-
import type { DeviceModel } from "@ledgerhq/devices";
7-
import { Observable, Observer } from "rxjs";
5+
@@ -6,8 +6,9 @@ import type { DeviceModel } from "@ledgerhq/devices";
6+
import { TraceContext } from "@ledgerhq/logs";
7+
import { Observable, Observer, SchedulerLike } from "rxjs";
88
import { HwTransportError } from "@ledgerhq/errors";
99
-import { ReconnectionConfig } from "./types";
1010
+import { BleManager, ReconnectionConfig } from "./types";
1111
export declare const setReconnectionConfig: (config: ReconnectionConfig | null | undefined) => void;
1212
+export declare const setBleManagerInstance: (manager: BleManager | null) => void;
13-
export default class BleTransport extends Transport {
14-
static disconnectTimeoutMs: number;
15-
/**
13+
/**
14+
* react-native bluetooth BLE implementation
15+
* @example
1616
diff --git a/lib/BleTransport.js b/lib/BleTransport.js
17-
index 4ecdc4ceee881e7561995731c24b14c74c981400..dacd8f8c7aa89efb5c4ed19af78f3d518c13521d 100644
17+
index c914ce808acae77470589415e72f297d60738717..e6c40acbb4dfcaa3910bf2d80c728f7b1ad85778 100644
1818
--- a/lib/BleTransport.js
1919
+++ b/lib/BleTransport.js
20-
@@ -89,6 +89,11 @@ const bleManagerInstance = () => {
21-
}
22-
return _bleManager;
23-
};
20+
@@ -85,6 +85,11 @@ let connectOptions = {
21+
* @returns {BleManager} - The instance of the BleManager.
22+
*/
23+
let _bleManager = null;
2424
+const setBleManagerInstance = (manager) => {
2525
+ if (_bleManager && manager && _bleManager !== manager) console.error('BleTransport _bleManager already initialized');
2626
+ _bleManager = manager;
2727
+}
2828
+exports.setBleManagerInstance = setBleManagerInstance;
29-
const clearDisconnectTimeout = (deviceId) => {
30-
const cachedTransport = transportsCache[deviceId];
31-
if (cachedTransport && cachedTransport.disconnectTimeout) {
29+
const bleManagerInstance = () => {
30+
if (!_bleManager) {
31+
_bleManager = new react_native_ble_plx_1.BleManager();
3232
diff --git a/lib-es/BleTransport.d.ts b/lib-es/BleTransport.d.ts
33-
index 8c4a245a1c1d886fd0d96d5f5ac2393f5cddb6df..844c9c1add8e3b70fdb8f8e320d1274a18ed2f73 100644
33+
index c33bae411b2b4dd9057c25f890b6a29086f1f530..b5511f05900630bed350212eeebf8a10d9fdc100 100644
3434
--- a/lib-es/BleTransport.d.ts
3535
+++ b/lib-es/BleTransport.d.ts
36-
@@ -5,8 +5,9 @@ import { DeviceId, Device, Characteristic } from "react-native-ble-plx";
37-
import type { DeviceModel } from "@ledgerhq/devices";
38-
import { Observable, Observer } from "rxjs";
36+
@@ -6,8 +6,9 @@ import type { DeviceModel } from "@ledgerhq/devices";
37+
import { TraceContext } from "@ledgerhq/logs";
38+
import { Observable, Observer, SchedulerLike } from "rxjs";
3939
import { HwTransportError } from "@ledgerhq/errors";
4040
-import { ReconnectionConfig } from "./types";
4141
+import { BleManager, ReconnectionConfig } from "./types";
4242
export declare const setReconnectionConfig: (config: ReconnectionConfig | null | undefined) => void;
4343
+export declare const setBleManagerInstance: (manager: BleManager | null) => void;
44-
export default class BleTransport extends Transport {
45-
static disconnectTimeoutMs: number;
46-
/**
44+
/**
45+
* react-native bluetooth BLE implementation
46+
* @example
4747
diff --git a/lib-es/BleTransport.js b/lib-es/BleTransport.js
48-
index 4edc417a02d0249fad463bae8a11ea8b1ff97d74..97af481fa5a361068a5b802af28c0c17ba4e861f 100644
48+
index cfef17bf343a9bda226a0027826c2476b1a380c6..7b6ebab7b534580fe69fca0d88cc8c84cadcc6b7 100644
4949
--- a/lib-es/BleTransport.js
5050
+++ b/lib-es/BleTransport.js
51-
@@ -82,6 +82,10 @@ const bleManagerInstance = () => {
52-
}
53-
return _bleManager;
54-
};
51+
@@ -78,6 +78,10 @@ let connectOptions = {
52+
* @returns {BleManager} - The instance of the BleManager.
53+
*/
54+
let _bleManager = null;
5555
+export const setBleManagerInstance = (manager) => {
5656
+ if (_bleManager && manager && _bleManager !== manager) console.error('BleTransport _bleManager already initialized');
5757
+ _bleManager = manager;
5858
+}
59-
const clearDisconnectTimeout = (deviceId) => {
60-
const cachedTransport = transportsCache[deviceId];
61-
if (cachedTransport && cachedTransport.disconnectTimeout) {
59+
const bleManagerInstance = () => {
60+
if (!_bleManager) {
61+
_bleManager = new BleManager();
6262
diff --git a/src/BleTransport.ts b/src/BleTransport.ts
63-
index 44c1697d4665c60e875f6eb7c1516bc1d4468c76..39ed7024439a7697cc001a5943187fc5bb7c2dea 100644
63+
index f8b73dc44ac2f5d56deb69ef6e1baa3bae044137..b002652dc905f0f74a5f135361e6f3bd53f7d00e 100644
6464
--- a/src/BleTransport.ts
6565
+++ b/src/BleTransport.ts
66-
@@ -107,6 +107,10 @@ const bleManagerInstance = (): BleManager => {
67-
68-
return _bleManager;
69-
};
66+
@@ -128,6 +128,10 @@ let connectOptions: Record<string, unknown> = {
67+
* @returns {BleManager} - The instance of the BleManager.
68+
*/
69+
let _bleManager: BleManager | null = null;
7070
+export const setBleManagerInstance = (manager: BleManager | null) => {
7171
+ if (_bleManager && manager && _bleManager !== manager) console.error('BleTransport _bleManager already initialized');
7272
+ _bleManager = manager;
7373
+}
74-
75-
const clearDisconnectTimeout = (deviceId: string): void => {
76-
const cachedTransport = transportsCache[deviceId];
74+
const bleManagerInstance = (): BleManager => {
75+
if (!_bleManager) {
76+
_bleManager = new BleManager();

app/package.json

+31-31
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
"@formatjs/intl-locale": "^4.0.0",
2929
"@formatjs/intl-numberformat": "^8.10.3",
3030
"@formatjs/intl-pluralrules": "^5.2.14",
31-
"@gorhom/bottom-sheet": "^5.0.0-alpha.10",
31+
"@gorhom/bottom-sheet": "^5.0.0-alpha.11",
3232
"@gorhom/portal": "^1.0.14",
3333
"@hookform/resolvers": "^3.9.0",
34-
"@ledgerhq/hw-app-eth": "^6.34.0",
35-
"@ledgerhq/hw-transport-web-ble": "6.27.17",
36-
"@ledgerhq/react-native-hw-transport-ble": "patch:@ledgerhq/react-native-hw-transport-ble@npm:6.29.3#../.yarn/patches/@ledgerhq-react-native-hw-transport-ble-npm-6.29.3-2fa5aa09cc.patch",
34+
"@ledgerhq/hw-app-eth": "^6.38.0",
35+
"@ledgerhq/hw-transport-web-ble": "6.29.2",
36+
"@ledgerhq/react-native-hw-transport-ble": "patch:@ledgerhq/react-native-hw-transport-ble@npm:6.33.2#~/.yarn/patches/@ledgerhq-react-native-hw-transport-ble-npm-6.33.2-1024f42a14.patch",
3737
"@react-native-async-storage/async-storage": "1.23.1",
3838
"@react-native-clipboard/clipboard": "^1.13.2",
3939
"@react-native-community/blur": "^4.4.0",
@@ -46,46 +46,46 @@
4646
"@react-oauth/google": "^0.12.1",
4747
"@sentry/react-native": "~5.22.2",
4848
"@shopify/flash-list": "1.6.4",
49-
"@tanstack/react-query": "^5.51.23",
50-
"@walletconnect/react-native-compat": "^2.13.3",
51-
"@walletconnect/web3wallet": "^1.12.3",
49+
"@tanstack/react-query": "^5.52.0",
50+
"@walletconnect/react-native-compat": "^2.15.1",
51+
"@walletconnect/web3wallet": "^1.14.1",
5252
"async-mutex": "^0.5.0",
5353
"babel-plugin-formatjs": "^10.5.16",
5454
"babel-plugin-module-resolver": "^5.0.2",
55-
"babel-preset-expo": "~11.0.8",
55+
"babel-preset-expo": "~11.0.14",
5656
"chardet": "^2.0.0",
5757
"color": "^4.2.3",
5858
"corejs": "^1.0.0",
5959
"crypto-browserify": "^3.12.0",
6060
"decimal.js": "^10.4.3",
6161
"dotenv": "^16.4.5",
6262
"ethers": "^6.13.2",
63-
"expo": "~51.0.18",
64-
"expo-apple-authentication": "~6.4.1",
63+
"expo": "~51.0.29",
64+
"expo-apple-authentication": "~6.4.2",
6565
"expo-application": "~5.9.1",
6666
"expo-asset": "~10.0.10",
6767
"expo-barcode-scanner": "~13.0.1",
6868
"expo-brightness": "~12.0.1",
69-
"expo-build-properties": "~0.12.3",
70-
"expo-camera": "~15.0.13",
69+
"expo-build-properties": "~0.12.5",
70+
"expo-camera": "~15.0.14",
7171
"expo-clipboard": "~6.0.3",
7272
"expo-constants": "~16.0.2",
73-
"expo-dev-client": "~4.0.19",
73+
"expo-dev-client": "~4.0.23",
7474
"expo-device": "~6.0.2",
75-
"expo-font": "~12.0.7",
75+
"expo-font": "~12.0.9",
7676
"expo-haptics": "~13.0.1",
77-
"expo-image": "~1.12.12",
77+
"expo-image": "~1.12.14",
7878
"expo-linear-gradient": "~13.0.2",
7979
"expo-linking": "~6.3.1",
8080
"expo-local-authentication": "~14.0.1",
8181
"expo-localization": "~15.0.3",
8282
"expo-navigation-bar": "~3.0.7",
83-
"expo-notifications": "~0.28.9",
84-
"expo-router": "~3.5.17",
83+
"expo-notifications": "~0.28.16",
84+
"expo-router": "~3.5.23",
8585
"expo-secure-store": "~13.0.2",
8686
"expo-splash-screen": "~0.27.5",
8787
"expo-status-bar": "~1.12.1",
88-
"expo-updates": "~0.25.18",
88+
"expo-updates": "~0.25.23",
8989
"fast-deep-equal": "^3.1.3",
9090
"fast-text-encoding": "^1.0.6",
9191
"find-yarn-workspace-root": "^2.0.0",
@@ -95,39 +95,39 @@
9595
"jotai": "^2.9.3",
9696
"jotai-effect": "^1.0.0",
9797
"jotai-immer": "^0.4.1",
98-
"jotai-scope": "^0.7.1",
98+
"jotai-scope": "^0.7.2",
9999
"jwt-decode": "^4.0.0",
100100
"lib": "workspace:*",
101101
"luxon": "^3.5.0",
102102
"neverthrow": "^7.0.1",
103103
"node-libs-react-native": "^1.2.1",
104104
"react": "18.2.0",
105-
"react-call": "^1.1.0",
105+
"react-call": "^1.2.0",
106106
"react-compiler-runtime": "file:./src/util/patches/react-compiler-runtime",
107107
"react-content-loader": "^7.0.2",
108108
"react-dom": "18.2.0",
109109
"react-hook-form": "^7.52.2",
110110
"react-intl": "^6.6.8",
111-
"react-native": "0.74.3",
112-
"react-native-ble-plx": "^3.2.0",
111+
"react-native": "0.74.5",
112+
"react-native-ble-plx": "^3.2.1",
113113
"react-native-cloud-storage": "^1.4.1",
114114
"react-native-collapsible": "^1.6.1",
115-
"react-native-drawer-layout": "^3.3.0",
115+
"react-native-drawer-layout": "^3.3.2",
116116
"react-native-gesture-handler": "~2.16.1",
117117
"react-native-get-random-values": "~1.11.0",
118118
"react-native-jazzicon": "patch:react-native-jazzicon@npm:^0.1.2#../.yarn/patches/react-native-jazzicon-npm-0.1.2-c1633b051f.patch",
119119
"react-native-pager-view": "6.3.0",
120120
"react-native-paper": "^5.12.5",
121-
"react-native-qrcode-svg": "^6.3.1",
122-
"react-native-quick-crypto": "^0.7.1",
121+
"react-native-qrcode-svg": "^6.3.2",
122+
"react-native-quick-crypto": "^0.7.3",
123123
"react-native-reanimated": "~3.10.1",
124-
"react-native-safe-area-context": "4.10.1",
124+
"react-native-safe-area-context": "4.10.5",
125125
"react-native-screens": "3.31.1",
126126
"react-native-svg": "15.2.0",
127127
"react-native-tab-view": "^3.5.2",
128128
"react-native-toast-message": "^2.2.0",
129129
"react-native-typewriter": "^0.7.0",
130-
"react-native-unistyles": "^2.8.2",
130+
"react-native-unistyles": "^2.9.1",
131131
"react-native-web": "~0.19.12",
132132
"react-relay": "^17.0.0",
133133
"relay-runtime": "^17.0.0",
@@ -144,7 +144,7 @@
144144
"devDependencies": {
145145
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
146146
"@babel/plugin-transform-private-methods": "^7.24.7",
147-
"@tanstack/eslint-plugin-query": "^5.51.15",
147+
"@tanstack/eslint-plugin-query": "^5.52.0",
148148
"@testing-library/jest-native": "^5.4.3",
149149
"@testing-library/react-native": "^12.5.2",
150150
"@total-typescript/ts-reset": "^0.5.1",
@@ -160,17 +160,17 @@
160160
"@typescript-eslint/parser": "^7.18.0",
161161
"@walletconnect/jsonrpc-types": "^1.0.4",
162162
"babel-plugin-lodash": "^3.3.4",
163-
"babel-plugin-react-compiler": "0.0.0-experimental-52d6685-20240815",
163+
"babel-plugin-react-compiler": "0.0.0-experimental-7d62301-20240819",
164164
"babel-plugin-relay": "^17.0.0",
165165
"babel-plugin-transform-remove-console": "^6.9.4",
166166
"eslint": "^8.57.0",
167167
"eslint-plugin-react": "^7.35.0",
168-
"eslint-plugin-react-compiler": "0.0.0-experimental-9aef357-20240815",
168+
"eslint-plugin-react-compiler": "0.0.0-experimental-8e3b87c-20240819",
169169
"eslint-plugin-react-hooks": "^4.6.2",
170170
"graphql": "^16.9.0",
171171
"jest": "^29.7.0",
172172
"jest-environment-node": "^29.7.0",
173-
"jest-expo": "~51.0.3",
173+
"jest-expo": "~51.0.4",
174174
"react-test-renderer": "18.2.0",
175175
"relay-compiler": "^17.0.0",
176176
"ts-toolbelt": "^9.6.0",

0 commit comments

Comments
 (0)