-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
executable file
·204 lines (165 loc) · 3.71 KB
/
Podfile
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
source 'https://cdn.cocoapods.org/'
#install! 'cocoapods',
# :generate_multiple_pod_projects => true,
# :incremental_installation => true
workspace 'Hyperdrive'
use_frameworks!
inhibit_all_warnings!
def rxSwift
pod 'RxSwift', '~> 5.0'
end
def rxCocoa
pod 'RxCocoa', '~> 5.0'
end
def rxOptional
pod 'RxOptional', '~> 3.0'
end
def snapKit
pod 'SnapKit', '~> 5.0'
end
def kingfisher
pod 'Kingfisher', '~> 5.0'
end
def quick
pod 'Quick', '~> 2.0'
end
def nimble
pod 'Nimble', '~> 8.0'
end
def cuckoo
pod 'Cuckoo', :git => 'https://github.com/Brightify/Cuckoo.git', :branch => 'master'
end
def rxNimble
pod 'RxNimble'
end
def rxTest
pod 'RxTest'
end
def shared
rxSwift
rxCocoa
rxOptional
kingfisher
end
def sharedTests
quick
nimble
cuckoo
rxNimble
rxTest
end
class HyperdrivePlatform
def initialize(podfile, name, platform, version)
@podfile = podfile
@name = name
@platform = platform
@version = version
end
def name
@name
end
def apply()
@podfile.platform @platform, @version
end
def self.ios(podfile)
return HyperdrivePlatform.new(podfile, 'iOS', :ios, '11.0')
end
def self.macos(podfile)
return HyperdrivePlatform.new(podfile, 'macOS', :osx, '10.13')
end
def self.tvos(podfile)
return HyperdrivePlatform.new(podfile, 'tvOS', :tvos, '11.0')
end
def self.allPlatforms(podfile)
return [ios(podfile), macos(podfile), tvos(podfile)]
end
end
def allPlatforms
HyperdrivePlatform.allPlatforms(self)
end
abstract_target 'Platform' do
project 'Platform/Platform.xcodeproj'
allPlatforms.each { |platform|
target "Hyperdrive-#{platform.name}" do
platform.apply()
end
}
allPlatforms.each { |platform|
target "RxHyperdrive-#{platform.name}" do
platform.apply()
shared
end
}
abstract_target 'Tests' do
sharedTests
allPlatforms.each { |platform|
target "HyperdriveTests-#{platform.name}" do
platform.apply()
end
}
allPlatforms.each { |platform|
target "RxHyperdriveTests-#{platform.name}" do
platform.apply()
shared
end
}
end
end
abstract_target 'Interface' do
project 'Interface/Interface.xcodeproj'
allPlatforms.each { |platform|
target "HyperdriveInterface-#{platform.name}" do
platform.apply()
snapKit
kingfisher
end
}
abstract_target 'Tests' do
sharedTests
allPlatforms.each { |platform|
target "HyperdriveInterfaceTests-#{platform.name}" do
platform.apply()
snapKit
kingfisher
end
}
end
end
abstract_target 'LiveInterface' do
project 'LiveInterface/LiveInterface.xcodeproj'
allPlatforms.each { |platform|
target "HyperdriveLiveInterface-#{platform.name}" do
platform.apply()
snapKit
rxSwift
rxCocoa
end
}
target 'HyperdriveInterfacePlayground' do
HyperdrivePlatform.ios(self).apply
snapKit
shared
end
end
#abstract_target 'Showcases' do
# target 'Showcase-iOS' do
# project 'Showcases/Showcase-iOS/Showcase-iOS.xcodeproj'
#
# ios
# end
#
# target 'Showcase-tvOS' do
# project 'Showcases/Showcase-tvOS/Showcase-tvOS.xcodeproj'
#
# tvos
# end
#
#
# target 'Showcase-macOS' do
# project 'Showcases/Showcase-macOS/Showcase-macOS.xcodeproj'
#
# macos
# devHyperdrive
# devHyperdriveUI
# end
#end