@@ -16,23 +16,26 @@ Pod::Spec.new do |s|
1616
1717 s . source = { :git => "https://github.com/callstack/react-native-slider.git" , :tag => "v#{ s . version } " }
1818 s . source_files = "ios/**/*.{h,m,mm}"
19-
20- s . dependency 'React-Core'
21-
22- # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
23- if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
24- s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
25- s . pod_target_xcconfig = {
26- "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
27- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
28- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
29- }
30-
31- s . dependency "React-RCTFabric"
32- s . dependency "React-Codegen"
33- s . dependency "RCT-Folly"
34- s . dependency "RCTRequired"
35- s . dependency "RCTTypeSafety"
36- s . dependency "ReactCommon/turbomodule/core"
19+ if defined? ( install_modules_dependencies )
20+ install_modules_dependencies ( s )
21+ else
22+ s . dependency 'React-Core'
23+
24+ # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
25+ if ENV [ 'RCT_NEW_ARCH_ENABLED' ] == '1' then
26+ s . compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
27+ s . pod_target_xcconfig = {
28+ "HEADER_SEARCH_PATHS" => "\" $(PODS_ROOT)/boost\" " ,
29+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1" ,
30+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
31+ }
32+
33+ s . dependency "React-RCTFabric"
34+ s . dependency "React-Codegen"
35+ s . dependency "RCT-Folly"
36+ s . dependency "RCTRequired"
37+ s . dependency "RCTTypeSafety"
38+ s . dependency "ReactCommon/turbomodule/core"
39+ end
3740 end
3841end
0 commit comments