Skip to content

Commit 6fe1ef1

Browse files
committed
fix: podspec update
1 parent 0f03d27 commit 6fe1ef1

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

react-native-a11y.podspec

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,33 @@ Pod::Spec.new do |s|
1111
s.license = package["license"]
1212
s.authors = package["author"]
1313

14-
s.platforms = { :ios => "9.0" }
14+
s.platforms = { :ios => min_ios_version_supported }
1515
s.source = { :git => "https://github.com/ArturKalach/react-native-a11y.git", :tag => "#{s.version}" }
1616

1717
s.source_files = "ios/**/*.{h,m,mm,swift}"
1818

19-
s.dependency "React-Core"
19+
20+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
21+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
22+
if respond_to?(:install_modules_dependencies, true)
23+
install_modules_dependencies(s)
24+
else
25+
s.dependency "React-Core"
2026

21-
# Don't install the dependencies when we run `pod install` in the old architecture.
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\" \"${PODS_ROOT}/Headers/Private/Yoga\"",
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"
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+
s.dependency "React-RCTFabric"
36+
s.dependency "React-Codegen"
37+
s.dependency "RCT-Folly"
38+
s.dependency "RCTRequired"
39+
s.dependency "RCTTypeSafety"
40+
s.dependency "ReactCommon/turbomodule/core"
41+
end
3642
end
3743
end

0 commit comments

Comments
 (0)