Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 8 additions & 10 deletions packages/core/DatadogSDKReactNative.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ Pod::Spec.new do |s|
test_spec.platforms = { :ios => "13.4", :tvos => "13.4" }
end

if respond_to?(:install_modules_dependencies, true) then
install_modules_dependencies(s)
end

if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
# install_modules_dependencies is only available on RN >= 0.71
if !respond_to?(:install_modules_dependencies, true) then
Pod::UI.warn "Using Datadog React Native SDK with new architecture on RN < 0.71 is discouraged and not officially supported."
end

if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
s.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES",
"OTHER_CPLUSPLUSFLAGS" => "-DRCT_NEW_ARCH_ENABLED=1"
}

# install_modules_dependencies is only available on RN >= 0.71
if respond_to?(:install_modules_dependencies, true)
install_modules_dependencies(s)
else
Pod::UI.warn "Using Datadog React Native SDK with new architecture on RN < 0.71 is discouraged and not officially supported."
end
end
end
Loading