Skip to content

Commit bd9f363

Browse files
authored
feat: update podspec (#776)
1 parent fe9c2c6 commit bd9f363

File tree

2 files changed

+375
-25
lines changed

2 files changed

+375
-25
lines changed

RNDateTimePicker.podspec

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
require 'json'
22

3-
fabric_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
4-
53
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
64

75
Pod::Spec.new do |s|
@@ -17,23 +15,8 @@ Pod::Spec.new do |s|
1715
s.source_files = "ios/**/*.{h,m,mm,cpp}"
1816
s.requires_arc = true
1917

20-
if fabric_enabled
21-
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
22-
23-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
24-
s.pod_target_xcconfig = {
25-
'HEADER_SEARCH_PATHS' => '"$(PODS_ROOT)/boost" "$(PODS_ROOT)/boost-for-react-native" "$(PODS_ROOT)/RCT-Folly"',
26-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
27-
}
28-
29-
s.dependency "React"
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"
36-
18+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1'
19+
install_modules_dependencies(s)
3720
else
3821
s.exclude_files = "ios/fabric"
3922

0 commit comments

Comments
 (0)