From afb2afec268fa6c124665075b13007e2d559be34 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Thu, 26 Jun 2025 10:46:39 -0700 Subject: [PATCH] Fix React-Fabric podspec to only use the sources for iOS (#52295) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52295 The current setup for several of our podspecs abuses the `**` globbing mechanism, forcing us to specify some excluded folders. By excplicitly mention the folders that we want to use on iOS, we can avoid the usage of the `exclude_files` property. This should make the setup more reliable and it will also avoid to leak to OSS the presence of some folders we only use internally like `platform/macos` and `platform/windows` ## Changelog: [Internal] - Reviewed By: huntie Differential Revision: D77381512 fbshipit-source-id: 4cb9118bf9f0ecd253d7d871341f733564d84c83 --- packages/react-native/ReactCommon/React-Fabric.podspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/React-Fabric.podspec b/packages/react-native/ReactCommon/React-Fabric.podspec index 39415480ed3..f4756ab4af6 100644 --- a/packages/react-native/ReactCommon/React-Fabric.podspec +++ b/packages/react-native/ReactCommon/React-Fabric.podspec @@ -120,8 +120,7 @@ Pod::Spec.new do |s| ss.subspec "view" do |sss| sss.dependency "React-renderercss" sss.dependency "Yoga" - sss.source_files = podspec_sources("react/renderer/components/view/**/*.{m,mm,cpp,h}", "react/renderer/components/view/**/*.{h}") - sss.exclude_files = "react/renderer/components/view/tests", "react/renderer/components/view/platform/android", "react/renderer/components/view/platform/windows" + sss.source_files = podspec_sources(["react/renderer/components/view/*.{m,mm,cpp,h}", "react/renderer/components/view/platform/cxx/**/*.{m,mm,cpp,h}"], ["react/renderer/components/view/*.{h}", "react/renderer/components/view/platform/cxx/**/*.{h}"]) sss.header_dir = "react/renderer/components/view" end