chore(suite-native): move getRandomValues polyfill to globalPolyfills for clarity

- It was applied in all environments alreday, but it was hidden in the hook and someone might think it's applied only on __DEV__
This commit is contained in:
Matej Kriz
2025-12-12 17:28:47 +01:00
committed by Matěj Kříž
parent b4b66eef76
commit 217ddc5ce5
4 changed files with 8 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
@config-plugins/detox
@expo/config-plugins
@mobily/ts-belt
@types/react-native-get-random-values
@react-native-community/cli
@react-native-community/netinfo
@react-native/babel-preset

View File

@@ -14,6 +14,7 @@ import isSubsetOf from 'set.prototype.issubsetof';
import isSupersetOf from 'set.prototype.issupersetof';
import symmetricDifference from 'set.prototype.symmetricdifference';
import union from 'set.prototype.union';
import 'react-native-get-random-values';
// Event, EventTarget and CustomEvent are needed for @solana/kit to work
globalThis.Event = Event;

View File

@@ -1,4 +1,3 @@
import 'react-native-get-random-values';
import { MMKV } from 'react-native-mmkv';
import { useMMKVDevTools } from '@rozenite/mmkv-plugin';

View File

@@ -11788,13 +11788,13 @@ __metadata:
"@trezor/connect": "workspace:*"
"@trezor/connect-mobile": "workspace:^"
"@trezor/e2e-utils": "workspace:*"
"@trezor/eslint": "workspace:*"
"@trezor/react-native-usb": "workspace:*"
"@trezor/styles": "workspace:*"
"@trezor/theme": "workspace:*"
"@trezor/trezor-user-env-link": "workspace:*"
"@trezor/utils": "workspace:*"
"@types/node": "npm:22.13.10"
"@types/react-native-get-random-values": "npm:1.8.2"
"@walletconnect/react-native-compat": "npm:^2.20.3"
"@whatwg-node/events": "npm:0.1.2"
abortcontroller-polyfill: "npm:1.7.8"
@@ -11836,7 +11836,7 @@ __metadata:
react-native-ble-plx: "patch:react-native-ble-plx@npm%3A3.5.0#~/.yarn/patches/react-native-ble-plx-npm-3.5.0-c98fd0ae25.patch"
react-native-edge-to-edge: "npm:1.7.0"
react-native-gesture-handler: "npm:2.29.0"
react-native-get-random-values: "npm:^1.11.0"
react-native-get-random-values: "npm:^2.0.0"
react-native-keyboard-controller: "npm:1.19.2"
react-native-launch-arguments: "npm:^4.1.1"
react-native-mmkv: "npm:~4.0.0"
@@ -16851,13 +16851,6 @@ __metadata:
languageName: node
linkType: hard
"@types/react-native-get-random-values@npm:1.8.2":
version: 1.8.2
resolution: "@types/react-native-get-random-values@npm:1.8.2"
checksum: 10/08f3f82efbb5b6d9acd8f7f55a2dac9f228886323ac3018a1bab46cd1b45f24809d194fd2a3fe02a9ec4196606325e5cfffde0b0057ae785208b658fdc83c821
languageName: node
linkType: hard
"@types/react-transition-group@npm:^4.4.0":
version: 4.4.12
resolution: "@types/react-transition-group@npm:4.4.12"
@@ -39846,14 +39839,14 @@ __metadata:
languageName: node
linkType: hard
"react-native-get-random-values@npm:^1.11.0":
version: 1.11.0
resolution: "react-native-get-random-values@npm:1.11.0"
"react-native-get-random-values@npm:^2.0.0":
version: 2.0.0
resolution: "react-native-get-random-values@npm:2.0.0"
dependencies:
fast-base64-decode: "npm:^1.0.0"
peerDependencies:
react-native: ">=0.56"
checksum: 10/eb04833ce2b66309d737f1447ab01ad32aca00a8d1cc4de7b4e751c23f4d9f8059a2643bb16e0b6f3e6b074a9e57e769bb2bf2afc50a912c5661d80a6ce4de34
react-native: ">=0.81"
checksum: 10/f55218ac9710f9d329f0cfb1d8dce9765b4d06fdd2b9f966ed0476298f8373875679caf68b44f4e3b363abe81d1cb6f4c47b45f58b87eae63bd54776beeded46
languageName: node
linkType: hard