diff --git a/react-native-ios-modal.podspec b/react-native-ios-modal.podspec index 71c8708..3057713 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']