-
Notifications
You must be signed in to change notification settings - Fork 4
/
MinCloud.podspec
53 lines (46 loc) · 2.41 KB
/
MinCloud.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
Pod::Spec.new do |s|
s.name = 'MinCloud'
s.version = '2.0.0'
s.summary = '知晓云 iOS SDK'
s.description = <<-DESC
知晓云是一个实时的后端云服务。使用它后,开发人员只需简单地在 App 中接入 SDK,而无需管理服务器或编写后端代码,即可轻松构建功能丰富的 App。
DESC
s.swift_version = '5.0'
s.homepage = 'https://cloud.minapp.com/'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'pengquanhua' => 'pengquanhua@ifanr.com' }
s.source = { :git => 'https://github.com/ifanrx/hydrogen-ios-sdk.git', :tag => s.version }
s.ios.deployment_target = '10.0'
s.subspec 'Core' do |core|
core.source_files = 'MinCloud/*.{swift}', 'MinCloud/Swamp/*.{swift}'
core.dependency 'Moya', '~> 14.0'
core.dependency 'Alamofire', '~> 5.0'
core.dependency 'Starscream'
core.resource = 'MinCloud/MinCloud.bundle'
end
s.subspec 'Alipay' do |ali|
ali.resource = 'MinCloud/AlipaySDK.bundle'
ali.ios.vendored_frameworks = 'MinCloud/AlipaySDK.framework'
ali.frameworks = "SystemConfiguration", "CoreTelephony", "CFNetwork", "CoreGraphics", "QuartzCore", "CoreText", "CoreMotion", "UIKit", "Foundation"
ali.libraries = "z", "c++"
ali.pod_target_xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/MinCloud' }
ali.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(PODS_ROOT)/MinCloud' }
end
s.subspec 'WeChat' do |wx|
wx.source_files = 'MinCloud/WechatAuthSDK.h', 'MinCloud/WXApiObject.h', 'MinCloud/WXApi.h'
wx.vendored_libraries = 'MinCloud/libWeChatSDK.a'
wx.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-Objc -all_load' }
wx.frameworks = "SystemConfiguration", "CoreTelephony", "Security", "CoreGraphics", "CFNetwork"
wx.libraries = "z", "c++", "sqlite3.0"
wx.xcconfig = { "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/MinCloud" }
end
s.subspec 'Sina' do |sina|
sina.source_files = 'MinCloud/WeiboSDK.h', 'MinCloud/WBHttpRequest.h'
sina.resource = 'MinCloud/WeiboSDK.bundle'
sina.vendored_libraries = 'MinCloud/libWeiboSDK.a'
sina.frameworks = 'Photos', 'ImageIO', 'SystemConfiguration', 'CoreText', 'QuartzCore', 'Security', 'UIKit', 'Foundation', 'CoreGraphics','CoreTelephony','WebKit'
sina.libraries = 'sqlite3', 'z'
end
s.module_map = 'MinCloud/module.modulemap'
s.static_framework = true
end