forked from 937447974/YJCocoa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYJCocoa.podspec
326 lines (305 loc) · 15.7 KB
/
YJCocoa.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
#
# Be sure to run `pod spec lint YJCocoa.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#
# 注册pod权限:pod trunk register [email protected] '阳君' --description='YJCocoa'
# 文档发包:appledoc -c "阳君" --company-id "com.YJ" -p YJCocoa -v 3.0.0 -o ./Documentation ./Cocoa
# 验证podspec命令:pod spec lint YJCocoa.podspec --allow-warnings --verbose
# pod发包:pod trunk push YJCocoa.podspec --verbose --allow-warnings
# pod开发环境:#pod 'YJCocoa', :git => 'https://github.com/937447974/YJCocoa.git'
Pod::Spec.new do |s|
# ――― Root specification
s.name = "YJCocoa"
s.version = "7.0.0"
s.author = { "阳君" => "[email protected]" }
s.license = { :type => "MIT", :file => "LICENSE" }
s.homepage = "https://github.com/937447974/YJCocoa"
#s.source = { :git => "https://github.com/937447974/YJCocoa.git", :branch => "master" }
s.source = { :git => "https://github.com/937447974/YJCocoa.git", :tag => "v#{s.version}" }
s.summary = "YJ系列开源库"
s.description = <<-DESC
姓名:阳君
QQ:937447974
YJ技术支持群:557445088
DESC
# ――― Platform
s.platform = :ios
s.ios.deployment_target = "7.0"
# ——— Documentation And API Reference
s.preserve_paths = 'Documentation/*.*'
s.prepare_command = 'sh Documentation/docset-installed.sh'
# ――― Build settings
s.frameworks = "UIKit", "Foundation"
s.requires_arc = true
# ——— File patterns
s.source_files = 'Cocoa/*.{h,m}'
# ——— Subspecs
s.default_subspec = 'AppFrameworks', 'AppServices', 'DeveloperTools', 'System'
# 1 App Frameworks
s.subspec 'AppFrameworks' do |af|
af.source_files = 'Cocoa/AppFrameworks/*.{h,m}'
# 1.1 Foundation
af.subspec 'Foundation' do |foundation|
foundation.source_files = 'Cocoa/AppFrameworks/Foundation/*.{h,m}'
# AOP
foundation.subspec 'AOP' do |aop|
aop.source_files = 'Cocoa/AppFrameworks/Foundation/AOP/*.{h,m}'
end
# Calendar
foundation.subspec 'Calendar' do |calendar|
calendar.source_files = 'Cocoa/AppFrameworks/Foundation/Calendar/*.{h,m}'
end
# DictionaryModel
foundation.subspec 'DictionaryModel' do |dm|
dm.source_files = 'Cocoa/AppFrameworks/Foundation/DictionaryModel/*.{h,m}'
dm.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
end
# Directory
foundation.subspec 'Directory' do |directory|
directory.source_files = 'Cocoa/AppFrameworks/Foundation/Directory/*.{h,m}'
directory.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
end
# FileManager
foundation.subspec 'FileManager' do |fileManager|
fileManager.source_files = 'Cocoa/AppFrameworks/Foundation/FileManager/*.{h,m}'
end
foundation.subspec 'Http' do |http|
http.source_files = 'Cocoa/AppFrameworks/Foundation/Http/*.{h,m}'
http.dependency 'YJCocoa/AppFrameworks/Foundation/URLCode'
end
foundation.subspec 'Log' do |log|
log.source_files = 'Cocoa/AppFrameworks/Foundation/Log/*.{h,m}'
end
foundation.subspec 'PerformSelector' do |performSelector|
performSelector.source_files = 'Cocoa/AppFrameworks/Foundation/PerformSelector/*.{h,m}'
end
# Router
foundation.subspec 'Router' do |router|
router.source_files = 'Cocoa/AppFrameworks/Foundation/Router/*.{h,m}'
router.dependency 'YJCocoa/AppFrameworks/Foundation/Http'
router.subspec 'Header' do |rHeader|
rHeader.source_files = 'Cocoa/AppFrameworks/Foundation/Router/Header/*.{h,m}'
end
router.subspec 'Manager' do |rManager|
rManager.source_files = 'Cocoa/AppFrameworks/Foundation/Router/Manager/*.{h,m}'
rManager.dependency 'YJCocoa/AppFrameworks/Foundation/Router/Header'
rManager.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
end
router.subspec 'Router' do |rRouter|
rRouter.source_files = 'Cocoa/AppFrameworks/Foundation/Router/Router/*.{h,m}'
rRouter.dependency 'YJCocoa/AppFrameworks/Foundation/Router/Header'
end
end
foundation.subspec 'Singleton' do |singleton|
singleton.source_files = 'Cocoa/AppFrameworks/Foundation/Singleton/*.{h,m}'
singleton.subspec 'Core' do |score|
score.source_files = 'Cocoa/AppFrameworks/Foundation/Singleton/Core/*.{h,m}'
score.dependency 'YJCocoa/AppFrameworks/Foundation/Other'
score.dependency 'YJCocoa/System/Dispatch'
end
end
# Swizzling
foundation.subspec 'Swizzling' do |swizzling|
swizzling.source_files = 'Cocoa/AppFrameworks/Foundation/Swizzling/*.{h,m}'
swizzling.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
swizzling.dependency 'YJCocoa/System/Dispatch'
end
# Timer
foundation.subspec 'Timer' do |timer|
timer.source_files = 'Cocoa/AppFrameworks/Foundation/Timer/*.{h,m}'
timer.dependency 'YJCocoa/AppFrameworks/Foundation/Calendar'
timer.dependency 'YJCocoa/AppFrameworks/Foundation/PerformSelector'
timer.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
timer.dependency 'YJCocoa/System/Security/Random'
end
# URLCode
foundation.subspec 'URLCode' do |urlCode|
urlCode.source_files = 'Cocoa/AppFrameworks/Foundation/URLCode/*.{h,m}'
end
foundation.subspec 'URLSession' do |session|
session.source_files = 'Cocoa/AppFrameworks/Foundation/URLSession/*.{h,m}'
session.subspec 'Pool' do |pool|
pool.source_files = 'Cocoa/AppFrameworks/Foundation/URLSession/Pool/*.{h,m}'
pool.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
end
session.subspec 'Request' do |request|
request.source_files = 'Cocoa/AppFrameworks/Foundation/URLSession/Request/*.{h,m}'
request.dependency 'YJCocoa/AppFrameworks/Foundation/DictionaryModel'
end
session.subspec 'Task' do |task|
task.source_files = 'Cocoa/AppFrameworks/Foundation/URLSession/Task/*.{h,m}'
task.dependency 'YJCocoa/AppFrameworks/Foundation/URLSession/Pool'
task.dependency 'YJCocoa/AppFrameworks/Foundation/URLSession/Request'
task.dependency 'YJCocoa/System/Dispatch'
end
end
foundation.subspec 'Other' do |other|
other.source_files = 'Cocoa/AppFrameworks/Foundation/Other/*.{h,m}'
end
end
# 1.2 UIKit
af.subspec 'UIKit' do |uik|
uik.source_files = 'Cocoa/AppFrameworks/UIKit/*.{h,m}'
# AutoLayout
uik.subspec 'AutoLayout' do |al|
al.source_files = 'Cocoa/AppFrameworks/UIKit/AutoLayout/*.{h,m}'
al.subspec 'UIView' do |v|
v.source_files = 'Cocoa/AppFrameworks/UIKit/AutoLayout/UIView/*.{h,m}'
v.dependency 'YJCocoa/AppFrameworks/UIKit/AutoLayout/LayoutAnchor'
end
al.subspec 'UIViewController' do |vc|
vc.source_files = 'Cocoa/AppFrameworks/UIKit/AutoLayout/UIViewController/*.{h,m}'
vc.dependency 'YJCocoa/AppFrameworks/UIKit/AutoLayout/LayoutAnchor'
end
al.subspec 'LayoutAnchor' do |la|
la.source_files = 'Cocoa/AppFrameworks/UIKit/AutoLayout/LayoutAnchor/*.{h,m}'
la.dependency 'YJCocoa/AppFrameworks/UIKit/AutoLayout/Extend'
end
al.subspec 'Extend' do |ale|
ale.source_files = 'Cocoa/AppFrameworks/UIKit/AutoLayout/Extend/*.{h,m}'
end
end
# CollectionViewManager
uik.subspec 'CollectionViewManager' do |cvm|
cvm.subspec 'Core' do |core|
core.source_files = 'Cocoa/AppFrameworks/UIKit/CollectionViewManager/Core/*.{h,m}', 'Cocoa/AppFrameworks/UIKit/CollectionViewManager/CollectionCell/*.{h,m}'
core.dependency 'YJCocoa/AppFrameworks/UIKit/CollectionViewManager/CollectionCellObject'
core.dependency 'YJCocoa/AppFrameworks/UIKit/ScrollViewManager'
core.dependency 'YJCocoa/System/Dispatch'
end
cvm.subspec 'CollectionCellObject' do |cco|
cco.source_files = 'Cocoa/AppFrameworks/UIKit/CollectionViewManager/CollectionCellObject/*.{h,m}'
cco.dependency 'YJCocoa/AppFrameworks/Foundation/Other'
end
end
# Color
uik.subspec 'Color' do |color|
color.source_files = 'Cocoa/AppFrameworks/UIKit/Color/*.{h,m}'
end
# UITextField和UITextView可输入长度控制
uik.subspec 'InputLength' do |il|
il.source_files = "Cocoa/AppFrameworks/UIKit/InputLength/*.{h,m}"
end
# NavigationBar
uik.subspec 'NavigationBar' do |nb|
nb.source_files = 'Cocoa/AppFrameworks/UIKit/NavigationBar/*.{h,m}'
nb.subspec 'Core' do |core|
core.source_files = 'Cocoa/AppFrameworks/UIKit/NavigationBar/Core/*.{h,m}'
core.dependency 'YJCocoa/AppFrameworks/UIKit/ViewGeometry'
end
end
# NavigationRouter
uik.subspec 'NavigationRouter' do |nr|
nr.source_files = 'Cocoa/AppFrameworks/UIKit/NavigationRouter/*.{h,m}'
nr.dependency 'YJCocoa/AppFrameworks/Foundation/Router'
end
# PageView
uik.subspec 'PageViewManager' do |pvm|
pvm.source_files = 'Cocoa/AppFrameworks/UIKit/PageViewManager/*.{h,m}', 'Cocoa/AppFrameworks/UIKit/PageViewManager/Cell/*.{h,m}'
pvm.dependency 'YJCocoa/AppFrameworks/Foundation/Timer'
pvm.subspec 'CellObject' do |co|
co.source_files = 'Cocoa/AppFrameworks/UIKit/PageViewManager/CellObject/*.{h,m}'
end
end
# ScrollViewManager
uik.subspec 'ScrollViewManager' do |svm|
svm.source_files = 'Cocoa/AppFrameworks/UIKit/ScrollViewManager/*.{h,m}'
svm.dependency 'YJCocoa/AppFrameworks/Foundation/AOP'
svm.dependency 'YJCocoa/AppFrameworks/UIKit/ViewGeometry'
end
# UITableView
uik.subspec 'TableViewManager' do |tvm|
tvm.subspec 'Core' do |core|
core.source_files = 'Cocoa/AppFrameworks/UIKit/TableViewManager/Core/*.{h,m}', 'Cocoa/AppFrameworks/UIKit/TableViewManager/TableCell/*.{h,m}'
core.dependency 'YJCocoa/AppFrameworks/UIKit/TableViewManager/TableCellObject'
core.dependency 'YJCocoa/AppFrameworks/UIKit/ScrollViewManager'
core.dependency 'YJCocoa/System/Dispatch'
end
tvm.subspec 'TableCellObject' do |tco|
tco.source_files = 'Cocoa/AppFrameworks/UIKit/TableViewManager/TableCellObject/*.{h,m}'
tco.dependency 'YJCocoa/AppFrameworks/Foundation/Other'
end
end
# UIView(UIViewGeometry)相关扩展,可快速设置fram相关
uik.subspec 'ViewGeometry' do |vg|
vg.source_files = "Cocoa/AppFrameworks/UIKit/ViewGeometry/*.{h,m}"
end
end
end
# 2 AppServices
s.subspec 'AppServices' do |as|
as.source_files = 'Cocoa/AppServices/*.{h,m}'
as.subspec 'CoreData' do |cd|
cd.source_files = 'Cocoa/AppServices/CoreData/*.{h,m}'
cd.subspec 'Core' do |cdCore|
cdCore.source_files = 'Cocoa/AppServices/CoreData/Core/*.{h,m}'
cdCore.dependency 'YJCocoa/AppFrameworks/Foundation/Timer'
end
cd.subspec 'Migration' do |cdMigration|
cdMigration.source_files = 'Cocoa/AppServices/CoreData/Migration/*.{h,m}'
cdMigration.dependency 'YJCocoa/AppServices/CoreData/Core'
cdMigration.dependency 'YJCocoa/AppFrameworks/Foundation/Directory'
cdMigration.dependency 'YJCocoa/AppFrameworks/Foundation/FileManager'
end
cd.subspec 'Object' do |cdObject|
cdObject.source_files = 'Cocoa/AppServices/CoreData/Object/*.{h,m}'
cdObject.dependency 'YJCocoa/AppServices/CoreData/Core'
end
end
end
#3 DeveloperTools
s.subspec 'DeveloperTools' do |dt|
dt.source_files = 'Cocoa/DeveloperTools/*.{h,m}'
# Leaks
dt.subspec 'Leaks' do |leaks|
leaks.source_files = 'Cocoa/DeveloperTools/Leaks/*.{h,m}'
leaks.subspec 'Core' do |lcore|
lcore.source_files = 'Cocoa/DeveloperTools/Leaks/Core/*.{h,m}'
lcore.dependency 'YJCocoa/AppFrameworks/Foundation/Singleton'
lcore.dependency 'YJCocoa/System/Dispatch'
end
leaks.subspec 'UIView' do |luiv|
luiv.source_files = 'Cocoa/DeveloperTools/Leaks/UIView/*.{h,m}'
luiv.dependency 'YJCocoa/AppFrameworks/Foundation/Swizzling'
luiv.dependency 'YJCocoa/DeveloperTools/Leaks/Core'
end
leaks.subspec 'UIViewController' do |luivc|
luivc.source_files = 'Cocoa/DeveloperTools/Leaks/UIViewController/*.{h,m}'
luivc.dependency 'YJCocoa/AppFrameworks/Foundation/Swizzling'
luivc.dependency 'YJCocoa/DeveloperTools/Leaks/Core'
end
end
# MemoryInfo
dt.subspec 'MemoryInfo' do |mi|
mi.source_files = 'Cocoa/DeveloperTools/MemoryInfo/*.{h,m}'
end
# TimeProfiler
dt.subspec 'TimeProfiler' do |tp|
tp.source_files = 'Cocoa/DeveloperTools/TimeProfiler/*.{h,m}'
tp.dependency 'YJCocoa/AppFrameworks/Foundation/Swizzling'
tp.dependency 'YJCocoa/System/Dispatch'
end
end
# 4 System
s.subspec 'System' do |system|
system.source_files = 'Cocoa/System/*.{h,m}'
system.subspec 'Dispatch' do |dispatch|
dispatch.source_files = 'Cocoa/System/Dispatch/*.{h,m}'
end
system.subspec 'Security' do |security|
security.source_files = 'Cocoa/System/Security/*.{h,m}'
security.subspec 'Keychain' do |keychain|
keychain.source_files = 'Cocoa/System/Security/Keychain/*.{h,m}'
keychain.subspec 'Item' do |item|
item.source_files = 'Cocoa/System/Security/Keychain/Item/*.{h,m}'
end
end
security.subspec 'Random' do |random|
random.source_files = 'Cocoa/System/Security/Random/*.{h,m}'
end
end
end
end