-
Notifications
You must be signed in to change notification settings - Fork 1
/
ZQFoundation.podspec
90 lines (81 loc) · 3.48 KB
/
ZQFoundation.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
#
# Be sure to run `pod lib lint ZQFoundation.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 = 'ZQFoundation'
s.version = '0.1.1'
s.summary = 'basic or common components.'
s.description = 'zq common module description'
s.homepage = 'https://github.com/kelvin943/ZQFoundation'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Macro Zhang' => 'quan943@163.com' }
s.source = { :git => 'git@github.com:kelvin943/ZQFoundation.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
s.ios.deployment_target = '8.0'
#使用 userframework 编译成静态库
s.static_framework = true
s.requires_arc = true
# s.default_subspec = 'Common', 'PAStatsAOP'hareCode
# 基本分类 宏定义
s.source_files = 'ZQFoundation.h'
s.subspec 'ZQCommon' do |ss|
ss.source_files = 'ZQCommon/*.h'
ss.subspec 'Category' do |category|
category.source_files ='ZQCommon/Category/**/*.{h,m}'
end
ss.subspec 'Macro' do |macro|
macro.source_files ='ZQCommon/Macro/**/*.{h,m}'
end
end
s.subspec 'ZQUIKit' do |ss|
ss.source_files = 'ZQUIKit/*.h'
#common
ss.subspec 'Common' do |common|
common.source_files ='ZQUIKit/Common/**/*.{h,m}'
common.dependency 'ZQFoundation/ZQCommon/Category'
end
#CustomizeNavBar
ss.subspec 'ZQCustomizeBar' do |navbar|
navbar.source_files ='ZQUIKit/ZQCustomizeBar/**/*.{h,m}'
end
#BaseVC
ss.subspec 'ZQBaseTabBarVC' do |baseTabBar|
baseTabBar.source_files = 'ZQUIKit/ZQBaseTabBarVC/**/*.{h,m}'
end
ss.subspec 'ZQBaseModel' do |baseModel|
baseModel.source_files = 'ZQUIKit/ZQBaseModel/**/*.{h,m}'
baseModel.dependency 'YYModel','1.0.4'
end
ss.subspec 'ZQBaseViewModel' do |baseViewModel|
baseViewModel.source_files = 'ZQUIKit/ZQBaseViewModel/**/*.{h,m}'
end
ss.subspec 'ZQBaseViewController' do |baseVC|
baseVC.source_files = 'ZQUIKit/ZQBaseViewController/**/*.{h,m}'
end
ss.subspec 'ZQTableViewController' do |baseTableVC|
baseTableVC.source_files = 'ZQUIKit/ZQTableViewController/**/*.{h,m}'
#内部的依赖如果不懈,spec 远程检查会有语法错误
baseTableVC.dependency 'ZQFoundation/ZQUIKit/ZQBaseViewController'
baseTableVC.dependency 'ZQFoundation/ZQUIKit/ZQBaseModel'
baseTableVC.dependency 'ZQFoundation/ZQCommon/Category'
baseTableVC.dependency 'MJRefresh', '3.2.0'
end
#PageViewController
ss.subspec 'ZQPageViewController' do |pageVC|
pageVC.source_files ='ZQUIKit/ZQPageViewController/**/*.{h,m}'
pageVC.dependency 'ZQFoundation/ZQUIKit/ZQBaseViewController'
end
#ZQHoverViewController
ss.subspec 'ZQHoverViewController' do |hoverVC|
hoverVC.source_files ='ZQUIKit/ZQHoverViewController/**/*.{h,m}'
hoverVC.dependency 'ZQFoundation/ZQUIKit/ZQBaseViewController'
hoverVC.dependency 'ZQFoundation/ZQUIKit/ZQPageViewController'
hoverVC.dependency 'ZQFoundation/ZQCommon/Category'
end
end
end