From b76c9ebf6461c499c8cd8b380aaa355e51f7e73d Mon Sep 17 00:00:00 2001 From: Eric Rozell Date: Mon, 29 Jul 2024 07:11:42 -0700 Subject: [PATCH] Invert podspec to allowlist platform files (#45734) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45734 Rather than enumerating all platforms the iOS podspec should not compile this inverts the source_files field to an allowlist for only files in platform/ios. ## Changelog [Internal] Differential Revision: D60291091 --- .../react/renderer/graphics/React-graphics.podspec | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec b/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec index 1faeaf8581af65..ac3bbfa1630cb3 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec +++ b/packages/react-native/ReactCommon/react/renderer/graphics/React-graphics.podspec @@ -23,7 +23,7 @@ folly_version = folly_config[:version] boost_compiler_flags = '-Wno-documentation' Pod::Spec.new do |s| - source_files = "**/*.{m,mm,cpp,h}" + source_files = "*.{m,mm,cpp,h}", "platform/ios/**/*.{mm,h}" header_search_paths = [ "\"$(PODS_ROOT)/boost\"", "\"$(PODS_TARGET_SRCROOT)/../../../\"", @@ -42,10 +42,6 @@ Pod::Spec.new do |s| s.source = source s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags s.source_files = source_files - s.exclude_files = "tests", - "platform/android", - "platform/cxx", - "platform/windows", s.header_dir = "react/renderer/graphics" s.framework = "UIKit"