-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMBAppKit.podspec
121 lines (103 loc) · 3.61 KB
/
MBAppKit.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
Pod::Spec.new do |s|
s.name = 'MBAppKit'
s.version = '0.13.0'
s.author = 'BB9z'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
s.homepage = 'https://github.com/RFUI/MBAppKit'
s.summary = '通用项目基础套件'
s.source = {
:git => 'https://github.com/RFUI/MBAppKit.git',
:tag => s.version.to_s
}
s.requires_arc = true
s.ios.deployment_target = '9.0'
s.macos.deployment_target = '10.10'
s.pod_target_xcconfig = {
}
s.default_subspec = 'Core'
s.subspec 'Core' do |ss|
ss.dependency 'RFKit', '~> 2.0'
ss.dependency 'RFKit/Category/NSDate'
ss.dependency 'RFKit/Category/NSDateFormatter'
ss.dependency 'RFKit/Category/NSURL'
ss.dependency 'RFKit/Category/NSJSONSerialization'
ss.dependency 'RFAlpha/RFSwizzle'
ss.dependency 'RFAPI', '~> 2.1.1'
ss.ios.dependency 'RFKit/Category/NSLayoutConstraint'
ss.ios.source_files = ['MBAppKit/**/*.{h,m}']
ss.ios.exclude_files = '**/macos/*'
ss.ios.public_header_files = 'MBAppKit/**/*.h'
ss.macos.source_files = [
'MBAppKit/MBApplicationDelegate/macos/*.{h,m}',
'MBAppKit/MBGeneral/*.{h,m}',
'MBAppKit/MBUserDefaults/*.{h,m}',
'MBAppKit/shadow.h',
]
ss.macos.public_header_files = [
'MBAppKit/MBApplicationDelegate/macos/*.h',
'MBAppKit/MBGeneral/*.h',
'MBAppKit/MBUserDefaults/*.h',
]
ss.private_header_files = 'MBAppKit/shadow.h'
end
# Config
s.subspec 'UserIDIsString' do |ss|
ss.dependency 'MBAppKit/Core'
ss.pod_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'MBUserStringUID=1',
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'MBUserStringUID'
}
ss.user_target_xcconfig = {
'GCC_PREPROCESSOR_DEFINITIONS' => 'MBUserStringUID=1' ,
'SWIFT_ACTIVE_COMPILATION_CONDITIONS' => 'MBUserStringUID'
}
end
# Components
s.subspec 'Button' do |ss|
ss.ios.deployment_target = '9.0'
ss.dependency 'RFInitializing'
ss.dependency 'RFKit/RFGeometry'
ss.source_files = 'Components/Button/*.{h,m}'
ss.public_header_files = 'Components/Button/*.h'
end
s.subspec 'Environment' do |ss|
ss.ios.deployment_target = '9.0'
ss.dependency 'RFKit/Runtime'
ss.dependency 'RFKit/Category/NSArray'
ss.source_files = 'Components/Environment/*.{h,m}'
ss.public_header_files = 'Components/Environment/*.h'
end
s.subspec 'Input' do |ss|
ss.ios.deployment_target = '9.0'
ss.dependency 'MBAppKit/Core'
ss.dependency 'RFInitializing'
ss.dependency 'RFKit/RFGeometry'
ss.dependency 'RFKit/Category/UIResponder'
ss.dependency 'RFDelegateChain/UITextFieldDelegate'
ss.source_files = 'Components/Input/*.{h,m}'
ss.public_header_files = 'Components/Input/*.h'
end
s.subspec 'RootViewController' do |ss|
ss.ios.deployment_target = '9.0'
ss.dependency 'RFKit/Runtime'
ss.source_files = 'Components/RootViewController/*.{h,m}'
ss.public_header_files = 'Components/RootViewController/*.h'
end
s.subspec 'Worker' do |ss|
ss.ios.deployment_target = '9.0'
ss.dependency 'MBAppKit/Core'
ss.dependency 'RFInitializing'
ss.source_files = 'Components/MBWorker/*.{h,m}'
ss.public_header_files = 'Components/MBWorker/*.h'
end
s.subspec 'Navigation' do |ss|
ss.ios.deployment_target = '9.0'
ss.dependency 'MBAppKit/Core'
ss.dependency 'RFAlpha/RFSynthesize'
ss.dependency 'RFAlpha/RFNavigationController'
ss.dependency 'RFKit/Category/NSArray'
ss.dependency 'RFKit/Category/UIResponder'
ss.source_files = 'Components/Navigation/*.{h,m}'
ss.public_header_files = 'Components/Navigation/*.h'
end
end