From 50a361848c1faacee541552d6cf10d78f79075bb Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 26 Mar 2026 08:49:15 -0400 Subject: [PATCH] add patch so fmt change isn't lost --- shared/patches/react-native+0.81.5.patch | 49 +++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/shared/patches/react-native+0.81.5.patch b/shared/patches/react-native+0.81.5.patch index 6044f91dc4a0..edf3f186d66a 100644 --- a/shared/patches/react-native+0.81.5.patch +++ b/shared/patches/react-native+0.81.5.patch @@ -2,7 +2,7 @@ diff --git a/node_modules/react-native/ReactCommon/react/renderer/textlayoutmana index 216bb23..ec0578d 100644 --- a/node_modules/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm +++ b/node_modules/react-native/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm -@@ -411,10 +411,11 @@ static NSLineBreakMode RCTNSLineBreakModeFromEllipsizeMode(EllipsizeMode ellipsi +@@ -411,10 +411,11 @@ - (TextMeasurement)_measureTextStorage:(NSTextStorage *)textStorage CGSize attachmentSize = attachment.bounds.size; CGRect glyphRect = [layoutManager boundingRectForGlyphRange:range inTextContainer:textContainer]; @@ -18,3 +18,50 @@ index 216bb23..ec0578d 100644 auto rect = facebook::react::Rect{ facebook::react::Point{frame.origin.x, frame.origin.y}, +diff --git a/node_modules/react-native/gradle/libs.versions.toml b/node_modules/react-native/gradle/libs.versions.toml +index f0902b7..cb88f66 100644 +--- a/node_modules/react-native/gradle/libs.versions.toml ++++ b/node_modules/react-native/gradle/libs.versions.toml +@@ -43,7 +43,7 @@ yoga-proguard-annotations = "1.19.0" + boost="1_83_0" + doubleconversion="1.1.6" + fastFloat="8.0.0" +-fmt="11.0.2" ++fmt="12.1.0" + folly="2024.11.18.00" + glog="0.3.5" + gflags="2.2.0" +diff --git a/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec b/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +index 8852179..040c4f0 100644 +--- a/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec ++++ b/node_modules/react-native/third-party-podspecs/RCT-Folly.podspec +@@ -25,7 +25,7 @@ Pod::Spec.new do |spec| + spec.dependency "DoubleConversion" + spec.dependency "glog" + spec.dependency "fast_float", "8.0.0" +- spec.dependency "fmt", "11.0.2" ++ spec.dependency "fmt", "12.1.0" + spec.compiler_flags = '-Wno-documentation -faligned-new' + spec.source_files = 'folly/String.cpp', + 'folly/Conv.cpp', +diff --git a/node_modules/react-native/third-party-podspecs/fmt.podspec b/node_modules/react-native/third-party-podspecs/fmt.podspec +index 2f38990..a40c575 100644 +--- a/node_modules/react-native/third-party-podspecs/fmt.podspec ++++ b/node_modules/react-native/third-party-podspecs/fmt.podspec +@@ -8,14 +8,14 @@ fmt_git_url = fmt_config[:git] + + Pod::Spec.new do |spec| + spec.name = "fmt" +- spec.version = "11.0.2" ++ spec.version = "12.1.0" + spec.license = { :type => "MIT" } + spec.homepage = "https://github.com/fmtlib/fmt" + spec.summary = "{fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams." + spec.authors = "The fmt contributors" + spec.source = { + :git => fmt_git_url, +- :tag => "11.0.2" ++ :tag => "12.1.0" + } + spec.pod_target_xcconfig = { + "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),