Skip to content

Commit 9c9350c

Browse files
committed
fix(ios): new arch setup in podspec
1 parent d0890b5 commit 9c9350c

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

packages/react-native-external-display/RNExternalDisplay.podspec

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,10 @@ Pod::Spec.new do |s|
1717
s.source_files = "ios/**/*.{h,m,mm}"
1818
s.requires_arc = true
1919

20-
s.dependency "React-Core"
21-
22-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
23-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
24-
s.pod_target_xcconfig = {
25-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
26-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
27-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
28-
}
29-
30-
s.dependency "React-RCTFabric"
31-
s.dependency "React-Codegen"
32-
s.dependency "RCT-Folly"
33-
s.dependency "RCTRequired"
34-
s.dependency "RCTTypeSafety"
35-
s.dependency "ReactCommon/turbomodule/core"
20+
if defined? install_modules_dependencies
21+
install_modules_dependencies(s)
22+
else
23+
s.dependency 'React-Core'
3624
end
3725

3826
end

0 commit comments

Comments
 (0)