-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControlsKit.podspec
More file actions
47 lines (39 loc) · 1.47 KB
/
ControlsKit.podspec
File metadata and controls
47 lines (39 loc) · 1.47 KB
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
Pod::Spec.new do |s|
s.name = 'ControlsKit'
s.version = '1.2.0'
s.summary = 'A collection of battle-tested UI components.'
s.description = <<-DESC
This is a list of components that have been developped over the course of multiple years, and have been used in a dozen of projects so far. They aim to either be a drop-in replacement for existing controls with more customizations, or provide additional features on top of existing controls.
DESC
s.homepage = 'https://github.com/Acuta/ControlsKit'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'stephanecopin' => 'stephane.copin@live.fr', 'bastienFalcou' => 'bastien.falcou@hotmail.com' }
s.source = { :git => 'https://github.com/Acuta/ControlsKit.git', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.exclude_files = 'ControlsKit/ControlsKit.h'
s.default_subspecs = 'Swift'
subspecs = [
'NibView',
'PlaceholderTextView',
'PageControl',
'Switch',
]
['ObjC', 'Swift'].each do |lang|
s.subspec lang do |ss|
subspecs.each do |name|
ss.dependency "ControlsKit/#{name}/#{lang}"
end
end
end
subspecs.each do |name|
s.subspec name do |ss|
ss.subspec 'ObjC' do |sss|
sss.source_files = "ControlsKit/CTK#{name}.{h,m}"
end
ss.subspec 'Swift' do |sss|
sss.dependency "ControlsKit/#{name}/ObjC"
sss.source_files = "ControlsKit/#{name}.swift"
end
end
end
end