Skip to content

Commit f83e327

Browse files
committed
Simplify podspec
1 parent e6f4a7b commit f83e327

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

packages/host/react-native-node-api.podspec

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,11 @@ Pod::Spec.new do |s|
4141
CMD
4242
}
4343

44-
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
44+
# Use install_modules_dependencies helper to install the dependencies (requires React Native version >=0.71.0).
4545
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
4646
if respond_to?(:install_modules_dependencies, true)
4747
install_modules_dependencies(s)
4848
else
49-
s.dependency "React-Core"
50-
# Don't install the dependencies when we run `pod install` in the old architecture.
51-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
52-
# TODO: Re-visit these dependencies and flags and remove them if not needed.
53-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
54-
s.pod_target_xcconfig = {
55-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
56-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
57-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
58-
}
59-
s.dependency "React-Codegen"
60-
s.dependency "RCT-Folly"
61-
s.dependency "RCTRequired"
62-
s.dependency "RCTTypeSafety"
63-
s.dependency "ReactCommon/turbomodule/core"
64-
end
49+
raise "This version of React Native is too old for React Native Node-API."
6550
end
6651
end

0 commit comments

Comments
 (0)