Skip to content

Commit

Permalink
Invert podspec to allowlist platform files (facebook#45734)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#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
  • Loading branch information
rozele authored and facebook-github-bot committed Jul 29, 2024
1 parent 3b76c84 commit b76c9eb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)/../../../\"",
Expand All @@ -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"

Expand Down

0 comments on commit b76c9eb

Please sign in to comment.