Skip to content

Commit 44bf0d9

Browse files
committed
Replace inline IOS dependencies with install_modules_dependencies method to depend on React Native core changes
1 parent 8795a94 commit 44bf0d9

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require "json"
22

33
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
54

65
Pod::Spec.new do |s|
76
s.name = "<%- project.identifier -%>"
@@ -22,23 +21,5 @@ Pod::Spec.new do |s|
2221
s.source_files = "ios/**/*.{h,m,mm}"
2322
<% } -%>
2423
25-
s.dependency "React-Core"
26-
27-
# Don't install the dependencies when we run `pod install` in the old architecture.
28-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
29-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
30-
s.pod_target_xcconfig = {
31-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
32-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
33-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
34-
}
35-
<% if (project.view) { -%>
36-
s.dependency "React-RCTFabric"
37-
<% } -%>
38-
s.dependency "React-Codegen"
39-
s.dependency "RCT-Folly"
40-
s.dependency "RCTRequired"
41-
s.dependency "RCTTypeSafety"
42-
s.dependency "ReactCommon/turbomodule/core"
43-
end
24+
install_modules_dependencies(s)
4425
end

0 commit comments

Comments
 (0)