From 5c34ce05876fe645cd49d9c425a379056629ccb3 Mon Sep 17 00:00:00 2001 From: Dmitry Rykun Date: Thu, 14 Mar 2024 19:24:35 -0700 Subject: [PATCH] Fix RNTester OSS build (#43496) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43496 This diff adds another sub-sub-spec to React-Fabric pod to fix import paths in `textinput`. Changelog: [Internal] Reviewed By: philIip, rshest Differential Revision: D54918454 fbshipit-source-id: 3949f8b8b201157f4c9eb256f3eb5bd5d66bc228 --- .../react-native/ReactCommon/React-Fabric.podspec | 13 ++++++++++--- .../components/iostextinput/TextInputProps.h | 2 +- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/react-native/ReactCommon/React-Fabric.podspec b/packages/react-native/ReactCommon/React-Fabric.podspec index b67b999bf9c7da..6662a301291ec8 100644 --- a/packages/react-native/ReactCommon/React-Fabric.podspec +++ b/packages/react-native/ReactCommon/React-Fabric.podspec @@ -198,15 +198,22 @@ Pod::Spec.new do |s| end - ss.subspec "textinput" do |sss| + ss.subspec "iostextinput" do |sss| sss.dependency folly_dep_name, folly_version sss.compiler_flags = folly_compiler_flags - sss.source_files = "react/renderer/components/textinput/**/*.{m,mm,cpp,h}" - sss.exclude_files = "react/renderer/components/textinput/platform/android" + sss.source_files = "react/renderer/components/textinput/platform/ios/**/*.{m,mm,cpp,h}" sss.header_dir = "react/renderer/components/iostextinput" end + ss.subspec "textinput" do |sss| + sss.dependency folly_dep_name, folly_version + sss.compiler_flags = folly_compiler_flags + sss.source_files = "react/renderer/components/textinput/*.{m,mm,cpp,h}" + sss.header_dir = "react/renderer/components/textinput" + + end + ss.subspec "unimplementedview" do |sss| sss.dependency folly_dep_name, folly_version sss.compiler_flags = folly_compiler_flags diff --git a/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.h b/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.h index 7c517713199bc4..ea1583c917136c 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.h +++ b/packages/react-native/ReactCommon/react/renderer/components/textinput/platform/ios/react/renderer/components/iostextinput/TextInputProps.h @@ -9,9 +9,9 @@ #include #include -#include #include #include +#include #include #include #include