mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[ios][prebuild] fixed wrong type of source file
After adding the podspec_source function we needed to be a bit more explicit with types, so where source files was originally defined in a variable and contained more than one entry we now needed to wrap it in an explicit array.
This commit is contained in:
@@ -17,7 +17,7 @@ else
|
||||
end
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
source_files = "*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"
|
||||
source_files = ["*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"]
|
||||
header_search_paths = [
|
||||
"\"$(PODS_TARGET_SRCROOT)/../../../\"",
|
||||
]
|
||||
|
||||
@@ -17,7 +17,7 @@ else
|
||||
end
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
source_files = "*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"
|
||||
source_files = ["*.{m,mm,cpp,h}", "platform/ios/**/*.{m,mm,cpp,h}"]
|
||||
header_search_paths = [
|
||||
"\"$(PODS_TARGET_SRCROOT)/../../\"",
|
||||
]
|
||||
@@ -30,7 +30,7 @@ Pod::Spec.new do |s|
|
||||
s.author = "Meta Platforms, Inc. and its affiliates"
|
||||
s.platforms = min_supported_versions
|
||||
s.source = source
|
||||
s.source_files = podspec_sources([source_files], ["*.h", "platform/ios/**/*.h"])
|
||||
s.source_files = podspec_sources(source_files, ["*.h", "platform/ios/**/*.h"])
|
||||
s.header_dir = "react/utils"
|
||||
s.exclude_files = "tests"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user