Skip to content

Commit d0ce634

Browse files
committed
chore: upgrade podspec
1 parent a8614e4 commit d0ce634

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed

example/ios/Podfile.lock

+4-3
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ PODS:
329329
- React-jsinspector (0.71.6)
330330
- React-logger (0.71.6):
331331
- glog
332-
- react-native-libsodium (1.1.2):
332+
- react-native-libsodium (1.4.0):
333+
- RCT-Folly (= 2021.07.22.00)
333334
- React-Core
334335
- React-perflogger (0.71.6)
335336
- React-RCTActionSheet (0.71.6):
@@ -606,7 +607,7 @@ SPEC CHECKSUMS:
606607
React-jsiexecutor: 7894956638ff3e00819dd3f9f6f4a84da38f2409
607608
React-jsinspector: d5ce2ef3eb8fd30c28389d0bc577918c70821bd6
608609
React-logger: 9332c3e7b4ef007a0211c0a9868253aac3e1da82
609-
react-native-libsodium: 070bd408c7ccf5ca931077aeb4277f0929299bc1
610+
react-native-libsodium: 9fa41404dbcff7a782bec055851dc5d465a2c817
610611
React-perflogger: 43392072a5b867a504e2b4857606f8fc5a403d7f
611612
React-RCTActionSheet: c7b67c125bebeda9fb19fc7b200d85cb9d6899c4
612613
React-RCTAnimation: c2de79906f607986633a7114bee44854e4c7e2f5
@@ -626,4 +627,4 @@ SPEC CHECKSUMS:
626627

627628
PODFILE CHECKSUM: 5be6ef07a456272805e0682c059fca55e556bcd6
628629

629-
COCOAPODS: 1.11.3
630+
COCOAPODS: 1.15.2

react-native-libsodium.podspec

+23-18
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,33 @@ Pod::Spec.new do |s|
1111
s.license = package["license"]
1212
s.authors = package["author"]
1313

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

17-
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{h,cpp}"
17+
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}"
1818

1919
s.vendored_frameworks = "libsodium/build/libsodium-apple/Clibsodium.xcframework"
2020

21-
s.dependency "React-Core"
22-
23-
# Don't install the dependencies when we run `pod install` in the old architecture.
24-
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
25-
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
26-
s.pod_target_xcconfig = {
27-
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
28-
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
29-
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
30-
}
31-
s.dependency "React-Codegen"
32-
s.dependency "RCT-Folly"
33-
s.dependency "RCTRequired"
34-
s.dependency "RCTTypeSafety"
35-
s.dependency "ReactCommon/turbomodule/core"
21+
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
22+
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
23+
if respond_to?(:install_modules_dependencies, true)
24+
install_modules_dependencies(s)
25+
else
26+
s.dependency "React-Core"
27+
28+
# Don't install the dependencies when we run `pod install` in the old architecture.
29+
if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
30+
s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
31+
s.pod_target_xcconfig = {
32+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
33+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
34+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
35+
}
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
37-
3843
end

0 commit comments

Comments
 (0)