-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDDSocial.podspec
83 lines (70 loc) · 2.88 KB
/
DDSocial.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
Pod::Spec.new do |s|
s.name = "DDSocial"
s.version = "1.6.3"
s.summary = "A share auth wheels based on the official library content wecaht sina tencent facebook twitter google mi"
s.homepage = "https://github.com/393385724/DDSocial"
s.license = 'MIT'
s.author = { "llg" => "[email protected]" }
s.source = { :git => "https://github.com/393385724/DDSocial.git", :tag => s.version.to_s }
s.platform = :ios, '8.0'
s.requires_arc = true
s.subspec 'Core' do |core|
core.source_files = 'DDSocial/Core/*.{h,m}'
core.frameworks = 'Foundation', 'UIKit', 'Accelerate'
end
s.subspec 'Tencent' do |tencent|
tencent.source_files = 'DDSocial/Tencent/Handler/*.{h,m}'
tencent.ios.vendored_frameworks = 'DDSocial/Tencent/TencentSDK/*.framework'
tencent.libraries = 'z', 'sqlite3','stdc++','iconv'
tencent.frameworks = 'SystemConfiguration','CoreGraphics', 'CoreTelephony', 'Security'
tencent.dependency 'DDSocial/Core'
end
s.subspec 'Wechat' do |wechat|
wechat.source_files = 'DDSocial/Wechat/*.{h,m}'
wechat.dependency 'DDSocial/Core'
wechat.dependency 'WechatOpenSDK'
end
s.subspec 'Sina' do |sina|
sina.source_files = 'DDSocial/Sina/*.{h,m}','DDSocial/Sina/libWeiboSDK/*.{h,m}'
sina.resource = 'DDSocial/Sina/libWeiboSDK/WeiboSDK.bundle'
sina.ios.vendored_libraries = 'DDSocial/Sina/libWeiboSDK/libWeiboSDK.a'
sina.frameworks = 'ImageIO', 'CoreText', 'QuartzCore', 'SystemConfiguration','Security', 'CoreGraphics','CoreTelephony'
sina.libraries = 'z', 'sqlite3'
sina.dependency 'DDSocial/Core'
end
s.subspec 'Facebook' do |facebook|
facebook.source_files = 'DDSocial/Facebook/*.{h,m}'
facebook.dependency 'FBSDKLoginKit'
facebook.dependency 'FBSDKShareKit'
facebook.dependency 'DDSocial/Core'
end
s.subspec 'Twitter' do |twitter|
twitter.source_files = 'DDSocial/Twitter/*.{h,m}'
twitter.dependency 'DDSocial/Core'
end
s.subspec 'MI' do |mi|
mi.source_files = 'DDSocial/MI/Handler/*.{h,m}'
mi.user_target_xcconfig = { 'ENABLE_BITCODE' => 'NO' }
mi.ios.vendored_frameworks = 'DDSocial/MI/MiSDK/*.framework'
mi.resource = "DDSocial/MI/MiSDK/*.bundle"
mi.dependency 'DDSocial/Core'
end
s.subspec 'Google' do |google|
google.source_files = 'DDSocial/Google/*.{h,m}'
google.dependency 'GoogleSignIn'
google.dependency 'DDSocial/Core'
end
s.subspec 'Line' do |line|
line.source_files = 'DDSocial/Line/*.{h,m}'
line.dependency 'LineSDK', '~> 4.0.3'
line.dependency 'DDSocial/Core'
end
s.subspec 'Instagram' do |instagram|
instagram.source_files = 'DDSocial/Instagram/*.{h,m}'
instagram.dependency 'DDSocial/Core'
end
s.subspec 'Share' do |share|
share.source_files = 'DDSocial/Handler/DDSocialShareHandler.{h,m}'
share.dependency 'DDSocial/Core'
end
end