-
Notifications
You must be signed in to change notification settings - Fork 0
/
LHTools.podspec
202 lines (189 loc) · 7.69 KB
/
LHTools.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#
# Be sure to run `pod lib lint LHTools.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 = 'LHTools'
s.version = '0.0.1'
s.summary = 'A base tool for swift develop'
# 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
TODO: Add long description of the pod here.
DESC
s.homepage = 'https://github.com/shookHead/LHTools'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'shookHead' => '[email protected]' }
s.source = { :git => 'https://github.com/shookHead/LHTools.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '12.0'
s.swift_version = '5.0'
# s.source_files = 'LHTools/Classes/**/*.swift'
s.source_files = "LHTools", "Classes/**/*.swift"
# s.resource_bundles = {
## 'LHTools' => ['LHTools/Assets/*.xcassets','LHTools/Assets/*.sqlite']
# 'LHTools' => ['LHTools/Assets/**/*']
# }
s.resources = "LHTools/Classes/resource/**/*"
s.static_framework = true
#Global
s.subspec 'Global' do |ss|
ss.source_files = 'LHTools/Classes/GlobalImport.swift','LHTools/Classes/BMConst.swift','LHTools/Classes/LHTools.swift','LHTools/Classes/LHInternationalization.swift'
end
#View
s.subspec 'View' do |ss|
ss.source_files = 'LHTools/Classes/View/**/*.swift'
end
#自定义视图
s.subspec '自定义视图' do |ss|
ss.subspec '提示框' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/提示框/**/*.swift'
end
ss.subspec 'PopView' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/PopView/**/*.swift'
end
ss.subspec '选择器' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/选择器/BMPicker.swift','LHTools/Classes/自定义视图/选择器/BMSelectView.swift'
sss.subspec 'CustomPicker' do |ssss|
ssss.source_files = 'LHTools/Classes/自定义视图/选择器/CustomPicker/{BM,LH,MY}{City,Base,Date,Single}Picker.swift'
ssss.subspec 'CityDataBase' do |sssss|
sssss.source_files = 'LHTools/Classes/自定义视图/选择器/CustomPicker/CityDataBase/CityDBManager.swift'
end
end
end
ss.subspec '图片上传' do |sss|
sss.subspec '快速上传' do |ssss|
ssss.source_files = 'LHTools/Classes/自定义视图/图片上传/快速上传/**/*.swift'
end
sss.subspec '多图选择控件' do |ssss|
ssss.source_files = 'LHTools/Classes/自定义视图/图片上传/多图选择控件/**/*.swift'
end
end
ss.subspec '加载等待' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/加载等待/**/*.swift'
end
ss.subspec '点赞动画' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/点赞动画/**/*.swift'
end
ss.subspec '时间段选择器' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/时间段选择器/**/*.swift'
end
ss.subspec '测试服切换工具' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/测试服切换工具/**/*.swift'
end
ss.subspec '轮播' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/轮播/**/*.swift'
end
ss.subspec '图片缩放预览' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/图片缩放预览/**/*.swift'
end
ss.subspec 'PhotoBrowser' do |sss|
sss.source_files = 'LHTools/Classes/自定义视图/PhotoBrowser/**/*.swift'
end
end
#扩展
s.subspec '扩展' do |ss|
ss.subspec 'Xib' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Xib/**/*.swift'
end
ss.subspec 'Color' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Color/**/*.swift'
end
ss.subspec 'SnapKit' do |sss|
sss.source_files = 'LHTools/Classes/扩展/SnapKit/**/*.swift'
end
ss.subspec 'Date' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Date/**/*.swift'
end
ss.subspec 'Number' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Number/**/*.swift'
end
ss.subspec 'View' do |sss|
sss.source_files = 'LHTools/Classes/扩展/View/**/*.swift'
end
ss.subspec 'Kingfisher' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Kingfisher/**/*.swift'
end
ss.subspec 'String' do |sss|
sss.source_files = 'LHTools/Classes/扩展/String/**/*.swift'
end
ss.subspec 'Nav' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Nav/**/*.swift'
end
ss.subspec 'Set' do |sss|
sss.source_files = 'LHTools/Classes/扩展/Set/**/*.swift'
end
ss.subspec 'SegmentedControl' do |sss|
sss.source_files = 'LHTools/Classes/扩展/SegmentedControl/**/*.swift'
end
end
#基类
s.subspec '基类' do |ss|
ss.source_files = 'LHTools/Classes/基类/**/*.swift'
end
#工具类
s.subspec '工具类' do |ss|
ss.subspec 'VideoPlayer' do |sss|
sss.source_files = 'LHTools/Classes/工具类/VideoPlayer/**/*.swift'
end
ss.subspec 'AuthorizationManager' do |sss|
sss.source_files = 'LHTools/Classes/工具类/AuthorizationManager/**/*.swift'
end
ss.subspec 'Utils' do |sss|
sss.source_files = 'LHTools/Classes/工具类/Utils/**/*.swift'
end
ss.subspec '获取文件' do |sss|
sss.source_files = 'LHTools/Classes/工具类/获取文件/**/*.swift'
end
ss.subspec '请求' do |sss|
sss.source_files = 'LHTools/Classes/工具类/请求/**/*.swift'
end
ss.subspec '约束' do |sss|
sss.source_files = 'LHTools/Classes/工具类/约束/**/*.swift'
end
ss.subspec '缓存' do |sss|
sss.source_files = 'LHTools/Classes/工具类/缓存/**/*.swift'
end
ss.subspec '二维码' do |sss|
sss.source_files = 'LHTools/Classes/工具类/二维码/**/*.swift'
end
end
#其他第三方
s.subspec 'Other' do |ss|
ss.subspec 'Distrib' do |sss|
sss.source_files = 'LHTools/Classes/Other/Distrib/*.swift'
end
end
s.public_header_files = 'Pod/Classes/**/*.h'
s.frameworks = 'UIKit', "Foundation"#, 'MapKit'
s.dependency 'Alamofire'
s.dependency 'Kingfisher'
s.dependency 'HandyJSON'
s.dependency 'MJRefresh'
s.dependency 'MBProgressHUD'
s.dependency 'SwiftyUserDefaults'
s.dependency 'IQKeyboardManagerSwift'
s.dependency 'SQLite.swift'
s.dependency 'Hero'
s.dependency 'NVActivityIndicatorView'
s.dependency 'ZLPhotoBrowser'
s.dependency 'JXPhotoBrowser'
s.dependency 'SnapKit'
#
# s.dependency 'Charts'
# s.dependency 'JXSegmentedView'
# s.dependency 'JXPagingView/Paging'
# s.dependency 'AttributedString'
# s.dependency 'LTMorphingLabel'
# s.dependency 'CollectionKit'
# s.dependency 'RxSwift', '~> 4.0'
# s.dependency 'RxCocoa', '~> 4.0'
# s.dependency 'RxDataSources', '~> 3.0'
end