-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBLFoundation.podspec
44 lines (34 loc) · 1.41 KB
/
BLFoundation.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
Pod::Spec.new do |s|
s.name = 'BLFoundation'
s.version = '0.9.2'
s.summary = 'A set of useful categories for Foundation.'
s.homepage = 'https://github.com/linhay/' + s.name
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'linhay' => '[email protected]' }
s.source = { :git => 'https://github.com/linhay/BLFoundation.git', :tag => s.version.to_s }
s.swift_version = '5'
s.requires_arc = true
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.osx.deployment_target = '10.10'
s.watchos.deployment_target = '2.0'
s.public_header_files = ['Sources/BLFoundation.h']
s.source_files = ['Sources/*.h']
list = ['Coder', 'NSObject', 'String', 'Stdlib', 'Date', 'URL', 'Data', 'Dispatch']
for name in list
s.subspec name do |ss|
ss.source_files = 'Sources/' + name + '/*.swift'
end
end
s.subspec 'Device' do |ss|
ss.watchos.source_files = ['Sources/Device/core/*.swift']
ss.tvos.source_files = ['Sources/Device/core/*.swift']
ss.osx.source_files = ['Sources/Device/core/*.swift']
ss.ios.source_files = ['Sources/Device/core/*.swift', 'Sources/Device/ios/*.swift' ]
ss.ios.frameworks = 'SystemConfiguration'
ss.osx.frameworks = 'SystemConfiguration'
end
s.subspec 'Custom' do |ss|
ss.source_files = ['Sources/Custom/*/**', 'Sources/Custom/*.swift']
end
end