This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
ShareSDK.podspec
109 lines (95 loc) · 4.46 KB
/
ShareSDK.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 = 'ShareSDK'
s.version = '3.3.1'
s.summary = 'ShareSDK is a SNS share kit.'
s.homepage = 'https://github.com/jcccn/ShareSDK-iOS'
s.author = { 'Chuncheng Jiang' => 'jccuestc@gmail.com' }
s.license = { :type => 'Copyright', :text => <<-LICENSE
Copyright © 2012-1015 mob All Rights Reserved 掌淘网络 版权所有
LICENSE
}
s.source = { :git => 'https://github.com/jcccn/ShareSDK-iOS.git', :tag => '3.3.1' }
s.platform = :ios, '6.0'
s.requires_arc = true
s.frameworks = 'UIKit', 'JavaScriptCore'
s.libraries = 'icucore', 'z.1.2.5', 'stdc++'
s.default_subspecs = 'Normal'
s.vendored_frameworks = 'ShareSDK/ShareSDK.framework'
s.subspec 'Normal' do |sp|
sp.dependency 'ShareSDK/ShareSDKPlatforms/SinaWeibo'
sp.dependency 'ShareSDK/ShareSDKPlatforms/QQ'
sp.dependency 'ShareSDK/ShareSDKPlatforms/WeChat'
end
# 核心模块
s.subspec 'Core' do |sp|
sp.dependency 'MOBFoundation'
sp.vendored_frameworks = 'ShareSDK/Support/Required/ShareSDKConnector.framework', 'ShareSDK/Support/Optional/ShareSDKExtension.framework'
sp.libraries = 'icucore', 'z', 'stdc++'
sp.resources = 'ShareSDK/Support/Required/ShareSDK.bundle'
end
# ShareSDK提供的UI
s.subspec 'ShareSDKUI' do |sp|
sp.dependency 'ShareSDK/Core'
sp.vendored_frameworks = 'ShareSDK/Support/Optional/ShareSDKUI.framework'
sp.resources = 'ShareSDK/Support/Optional/ShareSDKUI.bundle'
end
# 各个平台的SDK
s.subspec 'ShareSDKPlatforms' do |sp|
#sp.default_subspecs = 'QQ', 'SinaWeibo', 'WeChat', 'RenRen', 'Yixin', 'Messenger' - Errors: Can't set `default_subspecs` attribute for subspecs
# QQ
sp.subspec 'QQ' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_frameworks = 'ShareSDK/Support/PlatformSDK/QQSDK/TencentOpenAPI.framework'
ssp.resource = 'ShareSDK/Support/PlatformSDK/QQSDK/TencentOpenApi_IOS_Bundle.bundle'
ssp.libraries = 'sqlite3'
end
# SinaWeibo
sp.subspec 'SinaWeibo' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_libraries = "ShareSDK/Support/PlatformSDK/SinaWeiboSDK/*.a"
ssp.resource = 'ShareSDK/Support/PlatformSDK/SinaWeiboSDK/WeiboSDK.bundle'
ssp.frameworks = 'ImageIO'
ssp.libraries = 'sqlite3'
ssp.source_files = "ShareSDK/Support/PlatformSDK/SinaWeiboSDK/*.{h,m}"
ssp.public_header_files = "ShareSDK/Support/PlatformSDK/SinaWeiboSDK/*.h"
end
# WeChat
sp.subspec 'WeChat' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_libraries = "ShareSDK/Support/PlatformSDK/WeChatSDK/*.a"
ssp.source_files = "ShareSDK/Support/PlatformSDK/WeChatSDK/*.{h,m}"
ssp.public_header_files = "ShareSDK/Support/PlatformSDK/WeChatSDK/*.h"
ssp.libraries = 'sqlite3'
end
# RenRen
sp.subspec 'RenRen' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_frameworks = 'ShareSDK/Support/PlatformSDK/RenRenSDK/RennSDK.framework'
ssp.resource = 'ShareSDK/Support/PlatformSDK/RenRenSDK/RennSDK.bundle'
end
# 支付宝(AliPaySocial)
sp.subspec 'AliPaySocial' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_libraries = 'ShareSDK/Support/PlatformSDK/APSocialSDK/*.a'
ssp.source_files = "ShareSDK/Support/PlatformSDK/APSocialSDK/*.{h,m}"
ssp.public_header_files = "ShareSDK/Support/PlatformSDK/APSocialSDK/*.h"
end
# Kakao
sp.subspec 'Kakao' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_frameworks = 'ShareSDK/Support/PlatformSDK/KaKaoSDK/KakaoOpenSDK.framework'
end
# Yixin
sp.subspec 'Yixin' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_libraries = "ShareSDK/Support/PlatformSDK/YiXinSDK/*.a"
ssp.source_files = "ShareSDK/Support/PlatformSDK/YiXinSDK/*.{h,m}"
ssp.public_header_files = "ShareSDK/Support/PlatformSDK/YiXinSDK/*.h"
end
# Messenger
sp.subspec 'Messenger' do |ssp|
ssp.dependency 'ShareSDK/Core'
ssp.vendored_frameworks = 'ShareSDK/Support/PlatformSDK/FacebookMessengerSDK/FBSDKMessengerShareKit.framework'
end
end
end