From 62b250632a37bb69d813e27cae4e6299029326ae Mon Sep 17 00:00:00 2001 From: Christoph Pader Date: Thu, 17 Sep 2026 23:23:49 +0200 Subject: [PATCH] chore(deps): upgrade NitroModules runtime to 0.37.1 --- ios/Podfile.lock | 8 +++--- .../utils/HybridAppStartTimeModuleSpec.kt | 2 ++ .../nitro/utils/HybridContactsModuleSpec.kt | 2 ++ package-lock.json | 28 +++++++++---------- package.json | 6 ++-- patches/react-native-nitro-fetch/details.md | 2 +- ...fetch+1.6.2+001+certificate-pinning.patch} | 0 scripts/generateCertificatePins.sh | 2 +- 8 files changed, 27 insertions(+), 23 deletions(-) rename patches/react-native-nitro-fetch/{react-native-nitro-fetch+1.5.4+001+certificate-pinning.patch => react-native-nitro-fetch+1.6.2+001+certificate-pinning.patch} (100%) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index a6f6309b529e..7252e49e4c41 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -405,7 +405,7 @@ PODS: - nanopb/encode (= 3.30910.0) - nanopb/decode (3.30910.0) - nanopb/encode (3.30910.0) - - NitroFetch (1.5.4): + - NitroFetch (1.6.2): - boost - DoubleConversion - fast_float @@ -435,7 +435,7 @@ PODS: - ReactCommon/turbomodule/core - SocketRocket - Yoga - - NitroModules (0.36.3): + - NitroModules (0.37.1): - boost - DoubleConversion - fast_float @@ -5002,8 +5002,8 @@ SPEC CHECKSUMS: MapboxCoreMaps: de1a4461d0ab5d65d907f06e8d82fdbe06bb3213 MapboxMaps: 22340ae0e0d47b2e4761019b1d6c569ab04e088d nanopb: fad817b59e0457d11a5dfbde799381cd727c1275 - NitroFetch: 4941ca1e41fc72ebdad33c50c85fee59a3dd6871 - NitroModules: 1961fff19baf1f4a5221dd2fea7d4de95941f9e4 + NitroFetch: 0f353a00b92d23e8b32f5d91ca625e00d35762ff + NitroModules: f2a165630c12aed5793d6b42b9002c6a649ea04e NWWebSocket: 873eb4b18acd0317da70cdba388d792a3187ce00 Onfido: 65454f91d10758193c857fd149417f6efbea84c5 onfido-react-native-sdk: bb8cfd9198e2e97978461d969497d18b37e45ca7 diff --git a/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridAppStartTimeModuleSpec.kt b/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridAppStartTimeModuleSpec.kt index 3e1ad75479f4..f7ed0c33cfef 100644 --- a/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridAppStartTimeModuleSpec.kt +++ b/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridAppStartTimeModuleSpec.kt @@ -10,6 +10,7 @@ package com.margelo.nitro.utils import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip +import dalvik.annotation.optimization.FastNative import com.margelo.nitro.core.HybridObject /** @@ -46,6 +47,7 @@ abstract class HybridAppStartTimeModuleSpec: HybridObject() { @Keep protected open class CxxPart(javaPart: HybridAppStartTimeModuleSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridAppStartTimeModuleSpec::CxxPart::initHybrid(...) + @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { diff --git a/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridContactsModuleSpec.kt b/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridContactsModuleSpec.kt index 8f68b49898ea..2de192671efc 100644 --- a/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridContactsModuleSpec.kt +++ b/modules/ExpensifyNitroUtils/nitrogen/generated/android/kotlin/com/margelo/nitro/utils/HybridContactsModuleSpec.kt @@ -10,6 +10,7 @@ package com.margelo.nitro.utils import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip +import dalvik.annotation.optimization.FastNative import com.margelo.nitro.core.Promise import com.margelo.nitro.core.HybridObject @@ -43,6 +44,7 @@ abstract class HybridContactsModuleSpec: HybridObject() { @Keep protected open class CxxPart(javaPart: HybridContactsModuleSpec): HybridObject.CxxPart(javaPart) { // C++ JHybridContactsModuleSpec::CxxPart::initHybrid(...) + @FastNative external override fun initHybrid(): HybridData } override fun createCxxPart(): CxxPart { diff --git a/package-lock.json b/package-lock.json index 29e82a430a0b..02062162c094 100644 --- a/package-lock.json +++ b/package-lock.json @@ -122,8 +122,8 @@ "react-native-key-command": "1.0.14", "react-native-keyboard-controller": "1.22.4", "react-native-localize": "^3.5.4", - "react-native-nitro-fetch": "1.5.4", - "react-native-nitro-modules": "0.36.3", + "react-native-nitro-fetch": "1.6.2", + "react-native-nitro-modules": "0.37.1", "react-native-nitro-sqlite": "9.6.0", "react-native-onyx": "3.0.111", "react-native-pager-view": "9.0.4", @@ -263,7 +263,7 @@ "lefthook": "2.1.9", "link": "^2.1.1", "memfs": "^4.6.0", - "nitrogen": "0.36.3", + "nitrogen": "0.37.1", "onchange": "^7.1.0", "openai": "^7.0.0", "oxc-transform-react": "0.148.0", @@ -33734,14 +33734,14 @@ "license": "MIT" }, "node_modules/nitrogen": { - "version": "0.36.3", - "resolved": "https://registry.npmjs.org/nitrogen/-/nitrogen-0.36.3.tgz", - "integrity": "sha512-WOJLBBWyZPPPyBFYyScwGd1vfy6KvSTjlTug6eJy6RcTXDiMSiz7CjUmOPN6CIRN8o3PC3d/DLqDpo4/eGKbxA==", + "version": "0.37.1", + "resolved": "https://registry.npmjs.org/nitrogen/-/nitrogen-0.37.1.tgz", + "integrity": "sha512-RMK1n8xV7B38JorfLCFexgPEDp7/4CnM/AR0R3UfikufXo8qB8TecgtY+sW0xjOjZJYwW5bJJI/kyZjusYk4JA==", "dev": true, "license": "MIT", "dependencies": { "chalk": "^5.3.0", - "react-native-nitro-modules": "^0.36.3", + "react-native-nitro-modules": "^0.37.1", "ts-morph": "^28.0.0", "yargs": "^18.0.0", "zod": "^4.4.3" @@ -36079,9 +36079,9 @@ } }, "node_modules/react-native-nitro-fetch": { - "version": "1.5.4", - "resolved": "https://registry.npmjs.org/react-native-nitro-fetch/-/react-native-nitro-fetch-1.5.4.tgz", - "integrity": "sha512-RhiFeXkhSHhc1Qlo4qNG10a0LqKtfkg/W07+922+nXVkoWQMeZ/iY88dWU8bqi90LvR8wInmbovrorlTF8Qdxg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/react-native-nitro-fetch/-/react-native-nitro-fetch-1.6.2.tgz", + "integrity": "sha512-Xc65wFxiQbOWaMh4FwMSrNTErwW3/+/Q1t6K30j1lWp5j5LFH7RC4nbPJPrZfG9CeGyr7RVEZcZ3m4PgBqsP0g==", "license": "MIT", "workspaces": [ "example" @@ -36092,7 +36092,7 @@ "peerDependencies": { "react": "*", "react-native": "*", - "react-native-nitro-modules": "^0.36.1", + "react-native-nitro-modules": ">=0.36.1", "react-native-worklets": ">=0.8.0" }, "peerDependenciesMeta": { @@ -36116,9 +36116,9 @@ } }, "node_modules/react-native-nitro-modules": { - "version": "0.36.3", - "resolved": "https://registry.npmjs.org/react-native-nitro-modules/-/react-native-nitro-modules-0.36.3.tgz", - "integrity": "sha512-8nVnqxN2ZJdKw8u6HnUXBStd/ERRMzvN93g+A48EhWWeYQVx4idKYRMuNGXXsPUNIWOreNKs2hky2PBfnCif/g==", + "version": "0.37.1", + "resolved": "https://registry.npmjs.org/react-native-nitro-modules/-/react-native-nitro-modules-0.37.1.tgz", + "integrity": "sha512-KpW6EQVQ/bfegpCGxN9Be+ndvsfj56t4IESEvCASu9gWpJa/NDfHpIeIwCOvZQ3eXmLEj6YD4wCLqcC1FJPr2w==", "license": "MIT", "peerDependencies": { "react": "*", diff --git a/package.json b/package.json index 395a9c8e5bb3..dbf157e06108 100644 --- a/package.json +++ b/package.json @@ -198,8 +198,8 @@ "react-native-key-command": "1.0.14", "react-native-keyboard-controller": "1.22.4", "react-native-localize": "^3.5.4", - "react-native-nitro-fetch": "1.5.4", - "react-native-nitro-modules": "0.36.3", + "react-native-nitro-fetch": "1.6.2", + "react-native-nitro-modules": "0.37.1", "react-native-nitro-sqlite": "9.6.0", "react-native-onyx": "3.0.111", "react-native-pager-view": "9.0.4", @@ -339,7 +339,7 @@ "lefthook": "2.1.9", "link": "^2.1.1", "memfs": "^4.6.0", - "nitrogen": "0.36.3", + "nitrogen": "0.37.1", "onchange": "^7.1.0", "openai": "^7.0.0", "oxc-transform-react": "0.148.0", diff --git a/patches/react-native-nitro-fetch/details.md b/patches/react-native-nitro-fetch/details.md index 031432f2ae94..ac5944fe9daf 100644 --- a/patches/react-native-nitro-fetch/details.md +++ b/patches/react-native-nitro-fetch/details.md @@ -1,6 +1,6 @@ # `react-native-nitro-fetch` patches -### [react-native-nitro-fetch+1.5.4+001+certificate-pinning.patch](react-native-nitro-fetch+1.5.4+001+certificate-pinning.patch) +### [react-native-nitro-fetch+1.6.2+001+certificate-pinning.patch](react-native-nitro-fetch+1.6.2+001+certificate-pinning.patch) - Reason: diff --git a/patches/react-native-nitro-fetch/react-native-nitro-fetch+1.5.4+001+certificate-pinning.patch b/patches/react-native-nitro-fetch/react-native-nitro-fetch+1.6.2+001+certificate-pinning.patch similarity index 100% rename from patches/react-native-nitro-fetch/react-native-nitro-fetch+1.5.4+001+certificate-pinning.patch rename to patches/react-native-nitro-fetch/react-native-nitro-fetch+1.6.2+001+certificate-pinning.patch diff --git a/scripts/generateCertificatePins.sh b/scripts/generateCertificatePins.sh index 6c13faa3c862..abe06a45a781 100755 --- a/scripts/generateCertificatePins.sh +++ b/scripts/generateCertificatePins.sh @@ -21,7 +21,7 @@ # - android/app/src/main/res/xml/network_security_config_enforce.xml # - android/app/src/main/java/com/expensify/chat/CertificatePinning.kt # - ios/CertificatePinning.swift -# - patches/react-native-nitro-fetch+1.5.4+001+certificate-pinning.patch +# - patches/react-native-nitro-fetch/react-native-nitro-fetch+1.6.2+001+certificate-pinning.patch # - Mobile-Expensify/Android/res/xml/network_security_config_enforce.xml # - Mobile-Expensify/Android/src/yapl/android/http/ExpensifyCertificatePinner.java # - Mobile-Expensify/iOS/Expensify/ExpensifyAppDelegate.m (TrustKit kTSKPublicKeyHashes)