-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathLDSDKManager.podspec
94 lines (81 loc) · 3.26 KB
/
LDSDKManager.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
Pod::Spec.new do |s|
s.name = 'LDSDKManager'
s.version = '1.1.5'
s.summary = 'iOS第三方聚合库'
s.description = '聚合QQ、微信、微博、支付宝、钉钉、Telegram等第三方库,抽象封装分享、授权、支付功能,以便其他开发者能快速接入。'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'littleplayer' => 'mailjiancheng@163.com' }
s.homepage = 'https://github.com/poholo/LDSDKManager_IOS'
s.source = { :git => "https://github.com/poholo/LDSDKManager_IOS.git", :tag => "#{s.version}" }
s.platform = :ios, '9.0'
s.requires_arc = true
s.default_subspec = 'All'
#组件对外提供服务接口
s.subspec 'Core' do |ss|
ss.source_files = 'SDK/Core/**/*.{h,m,mm}',
'SDK/Core/*.{h,m,mm}'
ss.public_header_files = 'SDK/Core/*.h'
ss.public_header_files = 'SDK/Core/**/*.h'
ss.dependency 'MCBase/Dto'
ss.dependency 'MCBase/Log'
end
#QQ平台SDK集成
s.subspec 'QQ' do |ss|
ss.source_files = 'SDK/QQPlatform/*.{h,m,mm}'
ss.public_header_files = 'SDK/QQPlatform/*.h'
ss.dependency 'LDSDKManager/Core'
ss.dependency 'MCTencentOpenAPI'
end
#微信平台SDK集成
s.subspec 'Wechat' do |ss|
ss.source_files = 'SDK/WechatPlatform/**/*.{h,m,mm}',
'SDK/WechatPlatform/*.{h,m,mm}'
ss.public_header_files = 'SDK/WechatPlatform/*.h'
ss.dependency 'LDSDKManager/Core'
ss.dependency 'WechatOpenSDK'
end
#新浪微博平台SDK集成
s.subspec 'Weibo' do |ss|
ss.source_files = 'SDK/WeiboPlatform/*{h,m,mm}'
ss.public_header_files = 'SDK/WeiboPlatform/*.h'
ss.dependency 'LDSDKManager/Core'
ss.dependency 'Weibo_SDK', '3.3.0'
end
#支付宝平台SDK集成
s.subspec 'Alipay' do |ss|
ss.source_files = 'SDK/AlipayPlatform/*{h,m,mm}'
ss.public_header_files = 'SDK/AlipayPlatform/*.h'
ss.dependency 'AlipaySDK-iOS'
ss.dependency 'LDSDKManager/Core'
ss.dependency 'APOpenSdk'
end
#DingTalk_SDK集成
s.subspec 'DingTalk' do |ss|
ss.source_files = 'SDK/DingTalkPlatform/*{h,m,mm}'
ss.public_header_files = 'SDK/DingTalkPlatform/*.h'
ss.dependency 'LDSDKManager/Core'
ss.dependency 'MCDingTalk'
end
#Telegram
s.subspec 'Telegram' do |ss|
ss.source_files = 'SDK/TelegramPlatform/*{h,m,mm}'
ss.public_header_files = 'SDK/TelegramPlatform/*.h'
ss.dependency 'LDSDKManager/Core'
end
s.subspec 'Main' do |ss|
ss.dependency 'LDSDKManager/QQ'
ss.dependency 'LDSDKManager/Wechat'
ss.dependency 'LDSDKManager/Weibo'
ss.dependency 'LDSDKManager/DingTalk'
ss.dependency 'LDSDKManager/Telegram'
end
s.subspec 'All' do |all|
all.dependency 'LDSDKManager/QQ'
all.dependency 'LDSDKManager/Wechat'
all.dependency 'LDSDKManager/Weibo'
all.dependency 'LDSDKManager/Alipay'
all.dependency 'LDSDKManager/DingTalk'
all.dependency 'LDSDKManager/Telegram'
end
s.frameworks = 'UIKit', 'CoreGraphics', 'Foundation'
end