2020-07-07 17:44:10 +08:00
|
|
|
require "json"
|
|
|
|
|
|
|
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
|
|
|
|
|
|
Pod::Spec.new do |s|
|
2020-07-14 16:24:20 +08:00
|
|
|
s.name = "react-native-alipay"
|
2020-07-07 17:44:10 +08:00
|
|
|
s.version = package["version"]
|
|
|
|
s.summary = package["description"]
|
|
|
|
s.description = <<-DESC
|
2020-07-14 16:24:20 +08:00
|
|
|
Alipay SDK for React Native
|
2020-07-07 17:44:10 +08:00
|
|
|
DESC
|
2020-07-14 16:24:20 +08:00
|
|
|
s.homepage = "https://github.com/uiwjs/react-native-alipay"
|
2020-07-07 17:44:10 +08:00
|
|
|
# brief license entry:
|
|
|
|
s.license = "MIT"
|
|
|
|
# optional - use expanded license entry instead:
|
|
|
|
# s.license = { :type => "MIT", :file => "LICENSE" }
|
|
|
|
s.authors = { "Kenny Wong" => "wowohoo@qq.com" }
|
|
|
|
s.platforms = { :ios => "9.0" }
|
2020-07-14 16:24:20 +08:00
|
|
|
s.source = { :git => "https://github.com/uiwjs/react-native-alipay.git", :tag => "#{s.version}" }
|
2020-07-07 17:44:10 +08:00
|
|
|
|
|
|
|
s.source_files = "ios/**/*.{h,c,m,swift}"
|
|
|
|
s.requires_arc = true
|
|
|
|
|
|
|
|
s.dependency "React"
|
2020-07-07 20:10:43 +08:00
|
|
|
s.dependency "AlipaySDK-iOS"
|
|
|
|
s.library = "c++", "z"
|
2020-07-07 17:44:10 +08:00
|
|
|
# ...
|
|
|
|
# s.dependency "..."
|
|
|
|
end
|
|
|
|
|