-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOLCategoryHelper.podspec
165 lines (131 loc) · 5.61 KB
/
OLCategoryHelper.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
Pod::Spec.new do |s|
s.name = 'OLCategoryHelper'
s.version = '0.0.4'
s.license = 'MIT License'
s.summary = 'A Category Library of Objective-C'
s.description = <<-DESC
OLCategoryHelper is a Library contain many helpful categoris.
To Exned Cocoa Framework or some popular Framework.
Jusy use specified category you need.
DESC
s.homepage = 'https://github.com/payliu/OLCategoryHelper'
s.author = { 'Pay Liu' => '[email protected]',
'Josh' => '[email protected]' }
s.source = { :git => 'https://github.com/payliu/OLCategoryHelper.git', :tag => '0.0.4' }
#s.source = { :git => 'https://github.com/payliu/OLCategoryHelper.git', :commit => '8564bf5' }
s.platform = :ios, '8.0'
s.requires_arc = false
# category group
s.subspec 'Category' do |category|
category.source_files = 'src/Category'
# sub group of Category group.
category.subspec 'Math' do |math|
math.dependency 'OLCategoryHelper/Math+Degrees'
end
category.subspec 'NSData' do |nsdata|
nsdata.dependency 'OLCategoryHelper/NSData+AES'
end
category.subspec 'NSDate' do |nsdate|
nsdate.dependency 'OLCategoryHelper/NSDate+Translator'
end
category.subspec 'NSDictionary' do |nsdictionary|
nsdictionary.dependency 'OLCategoryHelper/NSDictionary+JSON'
end
category.subspec 'NSNumber' do |nsnumber|
nsnumber.dependency 'OLCategoryHelper/NSNumber+Date'
nsnumber.dependency 'OLCategoryHelper/NSNumber+Random'
end
category.subspec 'NSString' do |nsstring|
nsstring.dependency 'OLCategoryHelper/NSString+Blank'
nsstring.dependency 'OLCategoryHelper/NSString+BOOL'
nsstring.dependency 'OLCategoryHelper/NSString+Contains'
nsstring.dependency 'OLCategoryHelper/NSString+InterfaceOrientation'
end
category.subspec 'UIColor' do |uicolor|
uicolor.dependency 'OLCategoryHelper/UIColor+HexString'
uicolor.dependency 'OLCategoryHelper/UIColor+RGB'
end
category.subspec 'UIDevice' do |uidevice|
uidevice.dependency 'OLCategoryHelper/UIDevice+Enumerator'
uidevice.dependency 'OLCategoryHelper/UIDevice+Resolutions'
end
category.subspec 'UIImage' do |uiimage|
uiimage.dependency 'OLCategoryHelper/UIImage+H568'
end
category.subspec 'UINavigationController' do |uinavigationcontroller|
uinavigationcontroller.dependency 'OLCategoryHelper/UINavigationController+OrientationSettings'
uinavigationcontroller.dependency 'OLCategoryHelper/UINavigationController+Pilot'
end
category.subspec 'UIView' do |uiview|
uiview.dependency 'OLCategoryHelper/UIView+ViewFrameGeometry'
end
end
# individual category
# Math
s.subspec 'Math+Degrees' do |math_degrees|
math_degrees.source_files = 'src/Category/Math/Math+Degrees'
end
# NSData
s.subspec 'NSData+AES' do |nsdata_aes|
nsdata_aes.source_files = 'src/Category/NSData/NSData+AES'
end
# NSDate
s.subspec 'NSDate+Translator' do |nsdate_translator|
nsdate_translator.source_files = 'src/Category/NSDate/NSDate+Translator'
end
# NSDictionary
s.subspec 'NSDictionary+JSON' do |nsdictionary_json|
nsdictionary_json.source_files = 'src/Category/NSDictionary/NSDictionary+JSON'
end
# NSNumber
s.subspec 'NSNumber+Date' do |nsnumber_date|
nsnumber_date.source_files = 'src/Category/NSNumber/NSNumber+Date'
end
s.subspec 'NSNumber+Random' do |nsnumber_random|
nsnumber_random.source_files = 'src/Category/NSNumber/NSNumber+Random'
end
# NSString
s.subspec 'NSString+Blank' do |nsstring_blank|
nsstring_blank.source_files = 'src/Category/NSString/NSString+Blank'
nsstring_blank.dependency 'OLCategoryHelper/NSString+BOOL'
end
s.subspec 'NSString+BOOL' do |nsstring_bool|
nsstring_bool.source_files = 'src/Category/NSString/NSString+BOOL'
end
s.subspec 'NSString+Contains' do |nsstring_contains|
nsstring_contains.source_files = 'src/Category/NSString/NSString+Contains'
end
s.subspec 'NSString+InterfaceOrientation' do |nsstring_interfaceorientation|
nsstring_interfaceorientation.source_files = 'src/Category/NSString/NSString+InterfaceOrientation'
end
# UIColor
s.subspec 'UIColor+HexString' do |uicolor_hexstring|
uicolor_hexstring.source_files = 'src/Category/UIColor/UIColor+HexString'
end
s.subspec 'UIColor+RGB' do |uicolor_rgb|
uicolor_rgb.source_files = 'src/Category/UIColor/UIColor+RGB'
end
# UIDevice
s.subspec 'UIDevice+Enumerator' do |uidevice_enumerator|
uidevice_enumerator.source_files = 'src/Category/UIDevice/UIDevice+Enumerator'
end
s.subspec 'UIDevice+Resolutions' do |uidevice_resolutions|
uidevice_resolutions.source_files = 'src/Category/UIDevice/UIDevice+Resolutions'
end
# UIImage
s.subspec 'UIImage+H568' do |uiimage_h568|
uiimage_h568.source_files = 'src/Category/UIImage/UIImage+H568'
uiimage_h568.dependency 'OLCategoryHelper/UIDevice+Resolutions'
end
# UINavigationController
s.subspec 'UINavigationController+OrientationSettings' do |uinavigationcontroller_orientationSettings|
uinavigationcontroller_orientationSettings.source_files = 'src/Category/UINavigationController/UINavigationController+OrientationSettings'
end
s.subspec 'UINavigationController+Pilot' do |uinavigationcontroller_pilot|
uinavigationcontroller_pilot.source_files = 'src/Category/UINavigationController/UINavigationController+Pilot'
end
# UIView
s.subspec 'UIView+ViewFrameGeometry' do |uiview_viewframegeometry|
uiview_viewframegeometry.source_files = 'src/Category/UIView/UIView+ViewFrameGeometry'
end
end