From 61627d7b0b4f4cde51fbfcf9669985e49a0c1bb9 Mon Sep 17 00:00:00 2001 From: Sam Zhou Date: Tue, 3 Nov 2026 08:15:35 -0800 Subject: [PATCH] Upgrade Flow in fbsource Summary: Changelog: [Internal] Differential Revision: D129372154 --- packages/react-native/scripts/spm/generate-spm-xcodeproj.js | 1 + packages/react-native/scripts/spm/read-podspec.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/react-native/scripts/spm/generate-spm-xcodeproj.js b/packages/react-native/scripts/spm/generate-spm-xcodeproj.js index 0b65ed16b188..45dbfcfe6824 100644 --- a/packages/react-native/scripts/spm/generate-spm-xcodeproj.js +++ b/packages/react-native/scripts/spm/generate-spm-xcodeproj.js @@ -2154,6 +2154,7 @@ function addPreActionToScheme( const stiMatch = openTag.match(/shellToInvoke\s*=\s*"/); if (stiMatch != null) { const stiValueStart = + // $FlowFixMe[unsafe-addition] contentOpenIdx + stiMatch.index + stiMatch[0].length; const stiValueEnd = xmlWithScript.indexOf('"', stiValueStart); xmlWithScript = diff --git a/packages/react-native/scripts/spm/read-podspec.js b/packages/react-native/scripts/spm/read-podspec.js index 8fcf04bbf658..2789214d4f81 100644 --- a/packages/react-native/scripts/spm/read-podspec.js +++ b/packages/react-native/scripts/spm/read-podspec.js @@ -138,6 +138,7 @@ function runPodIpcSpec(podspecPath /*: string */) /*: RawSpec | null */ { const lastLineBrace = stdout.lastIndexOf('\n}'); const end = lastLineBrace >= 0 ? lastLineBrace + 2 : stdout.lastIndexOf('}') + 1; + // $FlowFixMe[invalid-compare] if (start < 0 || end <= start) { console.warn( '[read-podspec] pod ipc spec produced no line-anchored JSON object; ' +