mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update podspecs with the right search paths
Summary: Update podspecs with the right search paths to include the required framework by every module. ## Changelog: [iOS][Changed] - Update search paths to support `use_frameworks!` with Fabric Reviewed By: sammy-SC, dmytrorykun Differential Revision: D43089372 fbshipit-source-id: 4bbfc4b98bd289d66ce4015429d581856d9c05b3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
36a64dc2bd
commit
b1b2b8baaf
@@ -19,6 +19,19 @@ end
|
||||
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
|
||||
folly_version = '2021.07.22.00'
|
||||
|
||||
header_search_paths = [
|
||||
"\"$(PODS_ROOT)/RCT-Folly\"",
|
||||
"\"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\"",
|
||||
"\"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\""
|
||||
]
|
||||
|
||||
if ENV["USE_FRAMEWORKS"]
|
||||
header_search_paths = header_search_paths.concat([
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core\"",
|
||||
"\"$(PODS_CONFIGURATION_BUILD_DIR)/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core/platform/ios\""
|
||||
])
|
||||
end
|
||||
|
||||
Pod::Spec.new do |s|
|
||||
s.name = "React-RCTAnimation"
|
||||
s.version = version
|
||||
@@ -35,7 +48,7 @@ Pod::Spec.new do |s|
|
||||
s.pod_target_xcconfig = {
|
||||
"USE_HEADERMAP" => "YES",
|
||||
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
||||
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"${PODS_CONFIGURATION_BUILD_DIR}/React-Codegen/React_Codegen.framework/Headers\""
|
||||
"HEADER_SEARCH_PATHS" => header_search_paths.join(" ")
|
||||
}
|
||||
|
||||
s.dependency "RCT-Folly", folly_version
|
||||
|
||||
Reference in New Issue
Block a user