-
Notifications
You must be signed in to change notification settings - Fork 120
/
Copy pathEchoSDK.podspec
105 lines (92 loc) · 3.48 KB
/
EchoSDK.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
#
# Be sure to run `pod lib lint EchoSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'EchoSDK'
s.version = '0.0.8'
s.summary = 'Echo调试工具SDK.'
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Echo调试工具SDK.
DESC
s.homepage = 'https://github.com/didi/echo'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'chenaibin' => 'cocoa_chen@126.com' }
s.source = { :git => 'https://github.com/didi/echo.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '9.0'
s.osx.deployment_target = '10.13'
s.default_subspecs = 'Plugins'
s.resource_bundles = {
'EchoSDKResource' => ['Sources/Resources/**/*']
}
s.dependency "CocoaAsyncSocket"
# 核心层
s.subspec 'Core' do |core|
core.source_files = 'Sources/Core/**/*'
end
# SDK层
s.subspec 'ClientSDK' do |client_sdk|
client_sdk.source_files = 'Sources/Client/**/*'
client_sdk.dependency 'EchoSDK/Core'
end
# 插件层
s.subspec 'Plugins' do |plugins|
plugins.subspec 'Basic' do |ss|
ss.ios.source_files = 'Sources/Plugins/Basic/**/*'
end
plugins.subspec 'GeneralLog' do |ss|
ss.ios.source_files = 'Sources/Plugins/GeneralLog/**/*'
end
# plugins.subspec 'MemoryLeak' do |ss|
# ss.ios.source_files = 'Sources/Plugins/MemoryLeak/**/*'
# ss.ios.dependency "MLeaksFinder"
# ss.ios.dependency "RSSwizzle"
# end
plugins.subspec 'MockGPS' do |ss|
ss.ios.source_files = 'Sources/Plugins/MockGPS/**/*'
ss.ios.dependency "JZLocationConverter"
ss.ios.dependency 'EchoSDK/Plugins/Basic'
end
plugins.subspec 'Network' do |ss|
ss.ios.source_files = 'Sources/Plugins/Network/**/*'
ss.ios.dependency 'EchoSDK/Plugins/Basic'
end
plugins.subspec 'Notification' do |ss|
ss.ios.source_files = 'Sources/Plugins/Notification/**/*'
ss.ios.dependency 'EchoSDK/Plugins/Basic'
end
plugins.subspec 'NSLog' do |ss|
ss.ios.source_files = 'Sources/Plugins/NSLog/**/*'
ss.ios.dependency 'EchoSDK/Plugins/Basic'
end
plugins.subspec 'UI' do |ss|
ss.ios.source_files = 'Sources/Plugins/UI/**/*'
end
plugins.subspec 'ViewBorder' do |ss|
ss.ios.source_files = 'Sources/Plugins/ViewBorder/**/*'
ss.ios.dependency 'EchoSDK/Plugins/Basic'
end
plugins.subspec 'Watchdog' do |ss|
ss.ios.source_files = 'Sources/Plugins/Watchdog/**/*'
ss.ios.dependency "BSBacktraceLogger"
end
plugins.subspec 'Crash' do |ss|
ss.ios.source_files = 'Sources/Plugins/Crash/**/*'
end
plugins.subspec 'NSUserDefaults' do |ss|
ss.ios.source_files = 'Sources/Plugins/NSUserDefaults/**/*'
end
plugins.ios.dependency 'EchoSDK/Core'
plugins.ios.dependency 'EchoSDK/ClientSDK'
end
end