File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
packages/create-react-native-library/templates/native-common Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change 1
1
require "json"
2
2
3
3
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'
5
4
6
5
Pod ::Spec . new do |s |
7
6
s . name = "<%- project.identifier -%>"
@@ -22,23 +21,5 @@ Pod::Spec.new do |s|
22
21
s.source_files = "ios/**/*.{h,m,mm}"
23
22
<% } -%>
24
23
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)
44
25
end
You can’t perform that action at this time.
0 commit comments