-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-native-sodium.podspec
More file actions
32 lines (25 loc) · 914 Bytes
/
react-native-sodium.podspec
File metadata and controls
32 lines (25 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
Pod::Spec.new do |s|
s.name = "react-native-sodium"
s.version = package["version"]
s.summary = package["description"]
s.description = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.platforms = { :ios => "15.1" }
s.author = package["author"]
s.source = { :git => "", :tag => "#{s.version}" }
s.source_files = ["ios/**/*.{h,m,mm,swift}"]
s.subspec 'libsodium' do |sp|
sp.vendored_frameworks = "vendor/libsodium/Clibsodium.xcframework"
end
s.subspec 'sodiuma' do |sp|
sp.source_files = ["cpp/**/*.{h,cpp}"]
sp.dependency 'react-native-sodium/libsodium'
end
s.pod_target_xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20"
}
install_modules_dependencies(s)
end