Skip to content

Commit

Permalink
Use install_modules_dependencies for React iOS dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador authored Aug 22, 2024
1 parent 0abe24e commit bdef2d9
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions RNSentry.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,25 +32,17 @@ Pod::Spec.new do |s|

s.preserve_paths = '*.js'

s.dependency 'React-Core'
s.dependency 'Sentry/HybridSDK', '8.34.0'

s.source_files = 'ios/**/*.{h,m,mm}'
s.public_header_files = 'ios/RNSentry.h'

s.compiler_flags = other_cflags
# This guard prevent to install the dependencies when we run `pod install` in the old architecture.
if is_new_arch_enabled then
s.pod_target_xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
}

s.dependency "React-Codegen"
s.dependency "RCT-Folly"
s.dependency "RCTRequired"
s.dependency "RCTTypeSafety"
s.dependency "ReactCommon/turbomodule/core"

if defined? install_modules_dependencies
install_modules_dependencies(s)
else
s.dependency 'React-Core'
end

if is_using_hermes then
Expand Down

0 comments on commit bdef2d9

Please sign in to comment.