forked from hastar/beecloud-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BeeCloud.podspec
58 lines (50 loc) · 2.12 KB
/
BeeCloud.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
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
58
Pod::Spec.new do |s|
s.name = 'BeeCloud'
s.version = '3.6.4'
s.summary = 'BeeCloud 让支付更简单'
s.homepage = 'http://beecloud.cn'
s.license = 'MIT'
s.author = { 'LacusRInz' => '[email protected]' }
s.platform = :ios, '7.0'
s.source = { :git => 'https://github.com/beecloud/beecloud-ios.git', :tag => 'v3.6.4'}
s.requires_arc = true
s.default_subspecs = "Core", "Alipay", "Wx", "UnionPay"
s.subspec 'Core' do |core|
core.source_files = 'BCPaySDK/BeeCloud/**/*.{h,m}'
core.requires_arc = true
core.ios.library = 'c++', 'stdc++', 'z'
core.frameworks = 'CFNetwork', 'SystemConfiguration', 'Security'
core.resource = 'BCPaySDK/BeeCloud/SandBox/*.bundle'
core.xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
end
s.subspec 'Alipay' do |alipay|
alipay.frameworks = 'CoreMotion' , 'CoreTelephony'
alipay.vendored_frameworks = 'BCPaySDK/Channel/AliPay/AlipaySDK.framework'
alipay.source_files = 'BCPaySDK/Channel/AliPay/AliPayAdapter/*.{h,m}', 'BCPaySDK/Channel/AliPay/*.h'
alipay.dependency 'BeeCloud/Core'
end
s.subspec 'Wx' do |wx|
wx.frameworks = 'CoreTelephony'
wx.vendored_libraries = 'BCPaySDK/Channel/WXPay/libWeChatSDK.a'
wx.source_files = 'BCPaySDK/Channel/WXPay/WXPayAdapter/*.{h,m}', 'BCPaySDK/Channel/WXPay/*.h'
wx.ios.library = 'sqlite3'
wx.dependency 'BeeCloud/Core'
end
s.subspec 'UnionPay' do |unionpay|
unionpay.frameworks = 'QuartzCore'
unionpay.vendored_libraries = 'BCPaySDK/Channel/UnionPay/libPaymentControl.a'
unionpay.source_files = 'BCPaySDK/Channel/UnionPay/UnionPayAdapter/*.{h,m}', 'BCPaySDK/Channel/UnionPay/*.h'
unionpay.dependency 'BeeCloud/Core'
end
s.subspec 'ApplePay' do |apple|
apple.frameworks = 'QuartzCore','PassKit'
apple.vendored_libraries = 'BCPaySDK/Channel/ApplePay/libUPAPayPlugin.a'
apple.source_files = 'BCPaySDK/Channel/ApplePay/ApplePayAdapter/*.{h,m,mm}', 'BCPaySDK/Channel/ApplePay/*.h'
apple.dependency 'BeeCloud/Core'
end
s.subspec 'Offline' do |offline|
offline.source_files = 'BCPaySDK/Channel/OfflinePay/**/*.{h,m}'
offline.requires_arc = true
offline.dependency 'BeeCloud/Core'
end
end