-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJZKit.podspec
137 lines (96 loc) · 3.55 KB
/
JZKit.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
#
# Be sure to run `pod lib lint JZKit.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 = 'JZKit'
s.version = '1.4.0'
s.summary = '常用框架'
# 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
Yan's general framework
DESC
s.homepage = 'https://github.com/yanfj/JZKit'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'yanfj' => '[email protected]' }
s.source = { :git => 'https://github.com/yanfj/JZKit.git', :tag => s.version.to_s }
s.social_media_url = 'http://me.yanfj.com'
#最低支持系统版本
s.ios.deployment_target = '8.0'
#ARC
s.requires_arc = true
#头文件
s.public_header_files = 'JZKit/JZKit.h'
s.source_files = 'JZKit/JZKit.h'
#宏
s.subspec 'JZGeneralMacros' do |ss|
ss.source_files = 'JZKit/JZGeneralMacros'
end
#类目
s.subspec 'JZCategory' do |ss|
ss.source_files = 'JZKit/JZCategory/JZCategory.h'
#Foundation
ss.subspec 'Foundation' do |sss|
sss.source_files = 'JZKit/JZCategory/Foundation'
end
#UIKit
ss.subspec 'UIKit' do |sss|
sss.dependency 'SDWebImage','~> 4.0'
sss.dependency 'JZKit/JZGeneralMacros'
sss.dependency 'JZKit/JZCategory/Foundation'
sss.source_files = 'JZKit/JZCategory/UIKit'
end
#编码
ss.subspec 'Unicode' do |sss|
sss.dependency 'JZKit/JZCategory/Foundation'
sss.source_files = 'JZKit/JZCategory/Unicode'
end
end
#网络
s.subspec 'JZNetworkService' do |ss|
ss.dependency 'AFNetworking', '~> 3.0'
ss.dependency 'YYModel', '~> 1.0'
ss.dependency 'YYCache', '~> 1.0'
ss.dependency 'JZKit/JZGeneralMacros'
ss.source_files = 'JZKit/JZNetworkService'
end
#设置
s.subspec 'JZSettingsService' do |ss|
ss.dependency 'JZKit/JZGeneralMacros'
ss.source_files = 'JZKit/JZSettingsService'
end
#单例
s.subspec 'JZBasicInstance' do |ss|
ss.dependency 'JZKit/JZGeneralMacros'
ss.source_files = 'JZKit/JZBasicInstance'
end
#地区
s.subspec 'JZGeographicService' do |ss|
ss.dependency 'JZKit/JZBasicInstance'
ss.dependency 'YYModel', '~> 1.0'
ss.dependency 'YYCache', '~> 1.0'
ss.source_files = 'JZKit/JZGeographicService'
end
#选择器
s.subspec 'JZPickerGroup' do |ss|
ss.dependency 'MMPopupView-Enhanced'
ss.dependency 'JZKit/JZGeneralMacros'
ss.dependency 'JZKit/JZCategory/Foundation'
ss.dependency 'JZKit/JZGeographicService'
ss.source_files = 'JZKit/JZPickerGroup'
end
#HUD
s.subspec 'JZProgressHUD' do |ss|
ss.dependency 'MBProgressHUD', '~> 1.0'
ss.dependency 'JZKit/JZGeneralMacros'
ss.source_files = 'JZKit/JZProgressHUD/*.{h,m}'
ss.resources = 'JZKit/JZProgressHUD/JZProgressHUD.bundle'
end
end