Skip to content

Commit

Permalink
⚙️ Chore: Update Podspec Config
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Dec 8, 2024
1 parent de2a083 commit fee2933
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion react-native-ios-modal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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"',
Expand All @@ -61,14 +69,14 @@ 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"',

'"$(PODS_ROOT)/Headers/Private/React-bridging/react/bridging"',
'"$(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\""
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit fee2933

Please sign in to comment.