forked from ouer2015/xpay_ios_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathXPay.podspec
More file actions
57 lines (50 loc) · 2.25 KB
/
Copy pathXPay.podspec
File metadata and controls
57 lines (50 loc) · 2.25 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Pod::Spec.new do |s|
s.name = 'XPay'
s.version = '1.1.02'
s.summary = 'XPay iOS SDK'
s.description = <<-DESC
旋涡科技支付组件,包含 支付宝、微信、百度钱包、银联。
DESC
s.homepage = 'http://www.kkkd.com/home'
s.license = 'MIT'
s.author = { 'tongxuan' => 'tongxuan@ixiaopu.com' }
s.platform = :ios, '7.0'
s.source = { :git => 'https://github.com/ouer2015/xpay_ios_demo.git', :tag => s.version }
s.requires_arc = true
s.default_subspec = 'Base', 'AliPay', 'WxPay', 'UnionPay'
s.subspec 'Base' do |base|
base.source_files = 'example/sdk/*.h'
base.public_header_files = 'example/sdk/*.h'
base.vendored_libraries = 'example/sdk/*.a'
base.frameworks = 'CFNetwork', 'SystemConfiguration', 'Security', 'ImageIO', 'MobileCoreServices', 'CoreTelephony'
base.ios.library = 'c++', 'stdc++', 'z'
base.xcconfig = { 'OTHER_LDFLAGS' => '-lObjC' }
end
s.subspec 'AliPay' do |alipay|
alipay.vendored_libraries = 'example/sdk/Channel/Alipay/*.a'
alipay.ios.vendored_frameworks = 'example/sdk/Channel/Alipay/AlipaySDK.framework'
alipay.resource = 'example/sdk/Channel/Alipay/AlipaySDK.bundle'
alipay.dependency 'XPay/Base'
end
s.subspec 'WxPay' do |wx|
wx.vendored_libraries = 'example/sdk/Channel/WxPay/*.a'
wx.public_header_files = 'example/sdk/Channel/WxPay/*.h'
wx.source_files = 'example/sdk/Channel/WxPay/*.h'
wx.ios.library = 'sqlite3'
wx.dependency 'XPay/Base'
end
s.subspec 'UnionPay' do |unionpay|
unionpay.vendored_libraries = 'example/sdk/Channel/UnionPay/*.a'
unionpay.public_header_files = 'example/sdk/Channel/UnionPay/*.h'
unionpay.source_files = 'example/sdk/Channel/UnionPay/*.h'
unionpay.dependency 'XPay/Base'
end
s.subspec 'Bfb' do |bfb|
bfb.frameworks = 'AddressBook', 'AddressBookUI', 'AudioToolbox', 'CoreAudio', 'CoreGraphics', 'MapKit', 'MessageUI', 'QuartzCore'
bfb.public_header_files = 'example/sdk/Channel/BfbPay/Library/**/*.h'
bfb.source_files = 'example/sdk/Channel/BfbPay/Library/**/*.h'
bfb.resource = 'example/sdk/Channel/BfbPay/*.bundle'
bfb.vendored_libraries = 'example/sdk/Channel/BfbPay/**/*.a'
bfb.dependency 'XPay/Base'
end
end