This repository has been archived by the owner on Mar 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
PivotalCoreKit.podspec
128 lines (107 loc) · 4.46 KB
/
PivotalCoreKit.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
Pod::Spec.new do |s|
s.name = 'PivotalCoreKit'
s.version = '0.3.5'
s.license = { :type => 'MIT', :file => 'LICENSE.markdown' }
s.summary = 'Shared library and test code for iOS projects.'
s.homepage = 'https://github.com/pivotal/PivotalCoreKit'
s.author = { 'Pivotal Labs' => 'http://pivotallabs.com' }
s.source = { :git => 'https://github.com/pivotal/PivotalCoreKit.git', :tag => "v#{s.version}" }
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.requires_arc = false
s.default_subspec = 'Core'
s.subspec 'Core' do |core|
core.dependency 'PivotalCoreKit/UIKit/Core'
core.dependency 'PivotalCoreKit/Foundation/Core'
end
s.subspec 'Development' do |dev|
dev.dependency 'PivotalCoreKit/Core'
dev.dependency 'PivotalCoreKit/Foundation/SpecHelper'
dev.dependency 'PivotalCoreKit/UIKit/SpecHelper'
dev.dependency 'PivotalCoreKit/CoreLocation/SpecHelper'
end
s.subspec 'UIKit' do |ui|
ui.subspec 'Core' do |uicore|
uicore.source_files = 'UIKit/Core/**/*.{h,m}'
arc_files = 'UIKit/Core/Extensions/UIView+PCKNibHelpers.{h,m}'
uicore.exclude_files = arc_files
uicore.subspec 'Core-arc' do |core_arc|
core_arc.requires_arc = true
core_arc.source_files = arc_files
end
end
ui.subspec 'SpecHelper' do |spec|
spec.subspec 'Extensions' do |ext|
ext.source_files = ['UIKit/SpecHelper/Extensions/**/*.{h,m}', 'UIKit/SpecHelper/UIKit+PivotalSpecHelper.h']
ext.tvos.exclude_files = '**/iOS/**'
ext.dependency 'PivotalCoreKit/UIKit/SpecHelper/Support'
end
spec.subspec 'Stubs' do |stub|
stub.requires_arc = true
stub.source_files = ['UIKit/SpecHelper/Stubs/**/*.{h,m}', 'UIKit/SpecHelper/UIKit+PivotalSpecHelperStubs.h']
stub.dependency 'PivotalCoreKit/UIKit/SpecHelper/Support'
narc_files = ['UIKit/SpecHelper/Stubs/UIGestureRecognizer+Spec.*']
stub.exclude_files = narc_files
stub.tvos.exclude_files = '**/iOS/**'
stub.subspec 'Stubs-noarc' do |narc|
narc.requires_arc = false
narc.source_files = narc_files
end
end
spec.subspec 'Support' do |helper|
helper.source_files = ['UIKit/SpecHelper/Support/*.{h,m}']
end
end
end
s.subspec 'Foundation' do |f|
f.ios.deployment_target = '6.0'
f.osx.deployment_target = '10.6'
f.watchos.deployment_target = '2.0'
f.tvos.deployment_target = '9.0'
f.subspec 'Core' do |c|
c.source_files = 'Foundation/Core/**/*.{h,m}'
c.watchos.exclude_files = '**/Interfaces/**' # These classes are NSURLConnection-based which is not present on watchOS
c.libraries = 'xml2'
c.xcconfig = {'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
end
f.subspec 'SpecHelper' do |spec_helper|
spec_helper.source_files = [ 'Foundation/SpecHelper/Foundation+PivotalSpecHelper.h' ]
spec_helper.subspec 'Extensions' do |ext|
ext.source_files = ['Foundation/SpecHelper/Extensions/*.{h,m}', 'Foundation/Core/Extensions/NSObject+MethodRedirection.{h,m}']
ext.dependency 'PivotalCoreKit/Foundation/SpecHelper/Helpers'
ext.dependency 'PivotalCoreKit/Foundation/SpecHelper/Fakes'
end
spec_helper.subspec 'Fixtures' do |fix|
fix.source_files = 'Foundation/SpecHelper/Fixtures/*.{h,m}'
end
spec_helper.subspec 'Helpers' do |help|
help.source_files = ['Foundation/SpecHelper/Helpers/*.{h,m}', 'Foundation/SpecHelper/Extensions/NSURLConnection+Spec.h']
end
spec_helper.subspec 'Fakes' do |fake|
fake.source_files = 'Foundation/SpecHelper/Fakes/*.{h,m}'
fake.dependency 'PivotalCoreKit/Foundation/SpecHelper/Fixtures'
end
end
end
s.subspec 'CoreLocation' do |location|
location.ios.deployment_target = '6.0'
location.osx.deployment_target = '10.6'
location.watchos.deployment_target = '2.0'
location.tvos.deployment_target = '9.0'
location.subspec 'SpecHelper' do |h|
h.subspec 'Base' do |base|
base.source_files = 'CoreLocation/SpecHelper/*.{h,m}'
end
h.subspec 'Extensions' do |ext|
ext.source_files = 'CoreLocation/SpecHelper/Extensions/*.{h,m}'
end
end
end
s.subspec 'WatchKit' do |watchkit|
watchkit.ios.deployment_target = '8.2'
watchkit.requires_arc = true
watchkit.subspec 'WatchKit' do |child_watchkit|
child_watchkit.source_files = 'WatchKit/WatchKit/*.{h,m}'
end
end
end