forked from Hjayth/HJPaymentModule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HJPaymentModule.podspec
109 lines (74 loc) · 3.66 KB
/
HJPaymentModule.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Pod::Spec.new do |s|
s.name = "HJPaymentModule"
s.version = "0.0.3"
s.summary = "对Alipay、微信支付、银联支付三方支付进行聚合"
s.description = <<-DESC
1、集成alipay 、 微信支付、 银联支付三种支付方式,并暴露统一API进行管理
DESC
s.homepage = "https://github.com/Hjayth/HJPaymentModule"
s.license = "MIT"
s.author = { "hjayth" => "[email protected]" }
s.requires_arc = true
s.platform = :ios, "8.0"
s.ios.deployment_target = "8.0"
s.source = { :git => "https://github.com/Hjayth/HJPaymentModule.git", :tag => "#{s.version}" }
s.source_files = "HJPaymentModule/HJPaymentModule.h"
#subspec
s.subspec 'PayChannels' do |ss|
ss.source_files ='HJPaymentModule/PayChannels/*.{h,m}'
end
s.subspec 'AliPay' do |ss|
ss.source_files = 'HJPaymentModule/PayChannels/AliPay/*.{h,m}'
ss.resource = 'HJPaymentModule/PayChannels/AliPay/**/AlipaySDK.bundle'
ss.frameworks = 'CoreTelephony', 'SystemConfiguration', 'CoreMotion'
ss.vendored_frameworks = 'HJPaymentModule/PayChannels/AliPay/**/AlipaySDK.framework'
ss.libraries = 'c++', 'sqlite3', 'z'
ss.dependency 'HJPaymentModule/PayChannels'
end
s.subspec 'WXPay' do |ss|
ss.source_files = 'HJPaymentModule/PayChannels/WXPay/*.{h,m}'
ss.dependency 'WechatOpenSDK'
ss.dependency 'HJPaymentModule/PayChannels'
end
s.subspec 'Unpay' do |ss|
ss.source_files = 'HJPaymentModule/PayChannels/Unpay/**/*.{h,m}'
ss.vendored_libraries = 'HJPaymentModule/PayChannels/Unpay/**/*.a'
ss.libraries = 'c++', 'sqlite3', 'z'
ss.dependency 'HJPaymentModule/PayChannels'
end
s.subspec 'HJPaymentService' do |ss|
ss.source_files = 'HJPaymentModule/HJPaymentService/*.{h,m}'
ss.frameworks = 'SystemConfiguration','CFNetwork'
ss.dependency 'HJPaymentModule/PayChannels'
ss.dependency 'HJPaymentModule/AliPay'
ss.dependency 'HJPaymentModule/WXPay'
ss.dependency 'HJPaymentModule/Unpay'
end
# s.public_header_files = "Classes/**/*.h"
# ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# A list of resources included with the Pod. These are copied into the
# target bundle with a build phase script. Anything else will be cleaned.
# You can preserve files from being cleaned, please don't preserve
# non-essential files like tests, examples and documentation.
#
# s.resource = "icon.png"
# s.resources = "Resources/*.png"
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"
# ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# Link your library with frameworks, or libraries. Libraries do not include
# the lib prefix of their name.
#
# s.framework = "SomeFramework"
# s.frameworks = "SomeFramework", "AnotherFramework"
# s.library = "iconv"
# s.libraries = "iconv", "xml2"
# ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# If your library depends on compiler flags you can set them in the xcconfig hash
# where they will only apply to your library. If you depend on other Podspecs
# you can include multiple dependencies to ensure it works.
# s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
# s.dependency "JSONKit", "~> 1.4"
end