From fee293386fbbce5670de261feace66df045c64b0 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 9 Dec 2024 04:59:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20Chore:=20Update=20Podspec?= =?UTF-8?q?=20Config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-native-ios-modal.podspec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/react-native-ios-modal.podspec b/react-native-ios-modal.podspec index 71c8708c..30577137 100644 --- a/react-native-ios-modal.podspec +++ b/react-native-ios-modal.podspec @@ -16,6 +16,13 @@ fabric_compiler_flags = '-DRN_FABRIC_ENABLED -DRCT_NEW_ARCH_ENABLED' folly_version = '2022.05.16.00' folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32' +linkage = ENV['USE_FRAMEWORKS'] + +puts "react-native-ios-modal" +puts " - reactNativeTargetVersion: #{reactNativeVersion}" +puts " - fabric_enabled: #{fabric_enabled}" +puts " - linkage: #{linkage}" + Pod::Spec.new do |s| s.name = "react-native-ios-modal" s.version = package["version"] @@ -40,6 +47,7 @@ Pod::Spec.new do |s| '"${PODS_ROOT}/Headers/Public/hermes-engine"', '"${PODS_ROOT}/Headers/Private/React-Core"', '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-ios-utilities/Swift Compatibility Header"', + '"${PODS_CONFIGURATION_BUILD_DIR}/React-rendererconsistency/React_rendererconsistency.framework/Headers"', #'"${PODS_CONFIGURATION_BUILD_DIR}/react-native-ios-modal/Swift Compatibility Header"', #'"${PODS_ROOT}/Headers/Public/react-native-ios-utilities"', #'"${PODS_ROOT}/Headers/Private/react-native-ios-utilities"', @@ -61,7 +69,6 @@ Pod::Spec.new do |s| '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-ios-utilities/**"', '"${PODS_CONFIGURATION_BUILD_DIR}/react-native-ios-modal/Swift Compatibility Header"', - #'"$(PODS_ROOT)/Headers/Private/react-native-ios-utilities"', #'"$(PODS_ROOT)/Headers/Public/react-native-ios-utilities"', @@ -69,6 +76,7 @@ Pod::Spec.new do |s| '"$(PODS_CONFIGURATION_BUILD_DIR)/React-bridging/react_bridging.framework/Headers"', '"$(PODS_ROOT)/Headers/Private/Yoga"', ] + if fabric_enabled && ENV['USE_FRAMEWORKS'] user_header_search_paths << "\"$(PODS_ROOT)/DoubleConversion\"" user_header_search_paths << "\"${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers\"" @@ -126,6 +134,8 @@ Pod::Spec.new do |s| exclude_files.append('common/cpp/fabric/') end + s.public_header_files = 'ios/**/*.h' + s.exclude_files = exclude_files s.compiler_flags = compiler_flags s.private_header_files = ['ios/**/*+Private.h', 'ios/**/Swift.h']