forked from tbl00c/TLKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTLKit.podspec
More file actions
233 lines (188 loc) · 7.3 KB
/
TLKit.podspec
File metadata and controls
233 lines (188 loc) · 7.3 KB
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
Pod::Spec.new do |s|
s.name = "TLKit"
s.version = "0.0.28"
s.platform = :ios, "8.0"
s.summary = "iOS开发基础组件库"
s.description = <<-DESC
iOS开发基础组件库,主要包含以下内容:
1、shortcut: 通用宏,通用快捷c方法
2、Categories:通用类拓展
DESC
s.author = { "libokun" => "libokun@126.com" }
s.homepage = "https://github.com/tbl00c/TLKit"
s.license = { :type => "MIT", :file => "LICENSE" }
s.source = { :git => "https://github.com/tbl00c/TLKit.git", :tag => s.version }
s.public_header_files = "TLKit/TLKit.h"
s.source_files = "TLKit/TLKit.h"
# 通用宏定义、快捷方法
s.subspec 'TLShortcut' do |shortcut|
shortcut.source_files = "TLKit/TLShortcut/*.{h,m}"
end
# 基础控件
s.subspec 'TLFunctional' do |founc|
founc.public_header_files = "TLKit/TLFunctional/TLFunctional.h"
founc.source_files = "TLKit/TLFunctional/TLFunctional.h"
# TLActionSheet
founc.subspec 'TLActionSheet' do |ss|
ss.source_files = "TLKit/TLFunctional/TLActionSheet/*.{h,m}"
end
# TLBadge
#founc.subspec 'TLBadge' do |ss|
# ss.source_files = "TLKit/TLFunctional/TLBadge/*.{h,m}"
#end
# TLUIUtility
founc.subspec 'TLUIUtility' do |ss|
ss.source_files = "TLKit/TLFunctional/TLUIUtility/*.{h,m}"
ss.dependency "TLKit/TLCategories/UIKit/UIAlertView"
ss.dependency "TLKit/TLCategories/UIKit/UIWindow"
ss.dependency "SVProgressHUD", "~> 2.2.5"
end
end
# 通用分类
s.subspec 'TLCategories' do |categories|
categories.public_header_files = "TLKit/TLCategories/TLCategories.h"
categories.source_files = "TLKit/TLCategories/TLCategories.h"
# Foundation
categories.subspec 'Foundation' do |foundation|
foundation.public_header_files = "TLKit/TLCategories/Foundation/Foundation+TLCategories.h"
foundation.source_files = "TLKit/TLCategories/Foundation/Foundation+TLCategories.h"
# NSObject
foundation.subspec 'NSObject' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSObject/**/*.{h,m}"
end
# NSArray
foundation.subspec 'NSArray' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSArray/*.{h,m}"
end
# NSMutableArray
foundation.subspec 'NSMutableArray' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSMutableArray/*.{h,m}"
end
# NSDictionary
foundation.subspec 'NSDictionary' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSDictionary/*.{h,m}"
end
# NSMutableDictionary
foundation.subspec 'NSMutableDictionary' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSMutableDictionary/*.{h,m}"
end
# NSData
foundation.subspec 'NSData' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSData/*.{h,m}"
end
# NSDate
foundation.subspec 'NSDate' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSDate/*.{h,m}"
end
# NSString
foundation.subspec 'NSString' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSString/*.{h,m}"
ss.dependency "TLKit/TLCategories/Foundation/NSData"
end
# NSTimer
foundation.subspec 'NSTimer' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSTimer/*.{h,m}"
end
# NSBundle
foundation.subspec 'NSBundle' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSBundle/*.{h,m}"
end
# NSURL
foundation.subspec 'NSURL' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSURL/*.{h,m}"
end
# NSFileManager
foundation.subspec 'NSFileManager' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSFileManager/*.{h,m}"
end
# NSNotificationCenter
foundation.subspec 'NSNotificationCenter' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSNotificationCenter/*.{h,m}"
end
# NSDictionary
foundation.subspec 'NSDictionary' do |ss|
ss.source_files = "TLKit/TLCategories/Foundation/NSDictionary/*.{h,m}"
end
end
# UIKit
categories.subspec 'UIKit' do |uikit|
uikit.public_header_files = 'TLKit/TLCategories/UIKit/UIKit+TLCategories.h'
uikit.source_files = 'TLKit/TLCategories/UIKit/UIKit+TLCategories.h'
# UIView
uikit.subspec 'UIView' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIView/*.{h,m}"
ss.dependency "TLKit/TLShortcut"
ss.dependency "TLKit/TLCategories/Foundation/NSObject"
end
# UIScrollView
uikit.subspec 'UIScrollView' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIScrollView/*.{h,m}"
end
# UIButton
uikit.subspec 'UIButton' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIButton/*.{h,m}"
ss.dependency "TLKit/TLCategories/UIKit/UIImage"
end
# UIControl
uikit.subspec 'UIControl' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIControl/*.{h,m}"
end
# UICollectionViewCell
uikit.subspec 'UICollectionViewCell' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UICollectionViewCell/*.{h,m}"
end
# UIWindow
uikit.subspec 'UIWindow' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIWindow/*.{h,m}"
end
# UIViewController
uikit.subspec 'UIViewController' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIViewController/*.{h,m}"
ss.dependency "TLKit/TLCategories/UIKit/UIView"
ss.dependency "TLKit/TLCategories/UIKit/UINavigationController"
ss.dependency "TLKit/TLCategories/UIKit/UIBarButtonItem"
end
# UINavigationController
uikit.subspec 'UINavigationController' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UINavigationController/*.{h,m}"
end
# UINavigationController
uikit.subspec 'UITabBarController' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UITabBarController/*.{h,m}"
end
# UIColor
uikit.subspec 'UIColor' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIColor/*.{h,m}"
end
# UIImage
uikit.subspec 'UIImage' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIImage/*.{h,m}"
end
# UITextField
uikit.subspec 'UITextField' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UITextField/*.{h,m}"
end
# UITextView
uikit.subspec 'UITextView' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UITextView/*.{h,m}"
end
# UIBarButtonItem
uikit.subspec 'UIBarButtonItem' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIBarButtonItem/*.{h,m}"
end
# UINavigationItem
uikit.subspec 'UINavigationItem' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UINavigationItem/*.{h,m}"
ss.dependency "TLKit/TLCategories/UIKit/UIBarButtonItem"
end
# UINavigationBar
uikit.subspec 'UINavigationBar' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UINavigationBar/*.{h,m}"
end
# UIAlertView
uikit.subspec 'UIAlertView' do |ss|
ss.source_files = "TLKit/TLCategories/UIKit/UIAlertView/*.{h,m}"
end
end
end
end