From 1b0adf76650b01b228038490c16aa47d78c24c17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Henriques?= Date: Fri, 31 Jan 2025 14:59:26 +0000 Subject: [PATCH] Bump Onyx to 2.0.92 --- package-lock.json | 8 ++++---- package.json | 4 ++-- src/CONST.ts | 5 ++++- src/setup/index.ts | 5 +++-- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index cd91255bcded..231bb8fde1fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -98,7 +98,7 @@ "react-native-launch-arguments": "^4.0.2", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", - "react-native-onyx": "2.0.89", + "react-native-onyx": "2.0.92", "react-native-pager-view": "6.5.1", "react-native-pdf": "6.7.3", "react-native-performance": "^5.1.0", @@ -32318,9 +32318,9 @@ } }, "node_modules/react-native-onyx": { - "version": "2.0.89", - "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-2.0.89.tgz", - "integrity": "sha512-JzXjas0UNnYqTH4XD2Qfs64kBJBvHQ7HIIglieL1+Gto7eANyFRUpr0uRM3BlONinSPD/1xWZIurYAJtHuM5dg==", + "version": "2.0.92", + "resolved": "https://registry.npmjs.org/react-native-onyx/-/react-native-onyx-2.0.92.tgz", + "integrity": "sha512-6StFOp3j4DC3gsY5Cl1qcbZ8mXL1RUMyzDf4l4im/4QlF6+bSpOHdYDZZjrUddbO/i1PA5ktUnAK4NM/JQ+BZg==", "license": "MIT", "dependencies": { "ascii-table": "0.0.9", diff --git a/package.json b/package.json index 69b28e2efb65..025598519b27 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,8 @@ }, "dependencies": { "@dotlottie/react-player": "^1.6.3", - "@expensify/react-native-live-markdown": "0.1.221", "@expensify/react-native-background-task": "file:./modules/background-task", + "@expensify/react-native-live-markdown": "0.1.221", "@expo/metro-runtime": "^4.0.0", "@firebase/app": "^0.10.10", "@firebase/performance": "^0.6.8", @@ -163,7 +163,7 @@ "react-native-launch-arguments": "^4.0.2", "react-native-localize": "^2.2.6", "react-native-modal": "^13.0.0", - "react-native-onyx": "2.0.89", + "react-native-onyx": "2.0.92", "react-native-pager-view": "6.5.1", "react-native-pdf": "6.7.3", "react-native-performance": "^5.1.0", diff --git a/src/CONST.ts b/src/CONST.ts index b4c70adba0c2..be83791de3b2 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -16,6 +16,8 @@ import type PlaidBankAccount from './types/onyx/PlaidBankAccount'; const EMPTY_ARRAY = Object.freeze([]); const EMPTY_OBJECT = Object.freeze({}); +const DEFAULT_NUMBER_ID = 0; + const CLOUDFRONT_DOMAIN = 'cloudfront.net'; const CLOUDFRONT_URL = `https://d2k5nsl2zxldvw.${CLOUDFRONT_DOMAIN}`; const ACTIVE_EXPENSIFY_URL = addTrailingForwardSlash(Config?.NEW_EXPENSIFY_URL ?? 'https://new.expensify.com'); @@ -898,7 +900,7 @@ const CONST = { CLOUDFRONT_URL, EMPTY_ARRAY, EMPTY_OBJECT, - DEFAULT_NUMBER_ID: 0, + DEFAULT_NUMBER_ID, USE_EXPENSIFY_URL, EXPENSIFY_URL, GOOGLE_MEET_URL_ANDROID: 'https://meet.google.com', @@ -6525,6 +6527,7 @@ const CONST = { ERROR_PERMISSION_DENIED: 'permissionDenied', }, }, + SKIPPABLE_COLLECTION_MEMBER_IDS: [String(DEFAULT_NUMBER_ID), '-1', 'undefined', 'null', 'NaN'] as string[], } as const; type Country = keyof typeof CONST.ALL_COUNTRIES; diff --git a/src/setup/index.ts b/src/setup/index.ts index 3cfc0e55eae8..bf0e1c3fd2b9 100644 --- a/src/setup/index.ts +++ b/src/setup/index.ts @@ -1,7 +1,7 @@ import {I18nManager} from 'react-native'; import Onyx from 'react-native-onyx'; import intlPolyfill from '@libs/IntlPolyfill'; -import * as Device from '@userActions/Device'; +import {setDeviceID} from '@userActions/Device'; import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import addUtilsToWindow from './addUtilsToWindow'; @@ -42,9 +42,10 @@ export default function () { // Always open the home route on app startup for native platforms by clearing the lastVisitedPath [ONYXKEYS.LAST_VISITED_PATH]: initializeLastVisitedPath(), }, + skippableCollectionMemberIDs: CONST.SKIPPABLE_COLLECTION_MEMBER_IDS, }); - Device.setDeviceID(); + setDeviceID(); // Force app layout to work left to right because our design does not currently support devices using this mode I18nManager.allowRTL(false);