forked from jerson/react-native-fast-rsa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact-native-fast-rsa.podspec
24 lines (19 loc) · 984 Bytes
/
react-native-fast-rsa.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require "json"
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
shared_lib = File.join(__dir__, "ios/librsa_bridge.a").gsub(/ /, '\ ')
Pod::Spec.new do |s|
s.name = package["name"]
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]
s.platforms = { :ios => "10.0" }
s.source = { :git => "https://github.com/jerson/react-native-fast-rsa.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm}", "cpp/**/*.{h,cpp}"
s.vendored_libraries = '*.a'
s.xcconfig = { 'OTHER_LDFLAGS' => "-force_load '#{shared_lib}'"}
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.dependency "React-Core"
end