File tree 2 files changed +34
-1
lines changed
2 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,39 @@ class A {
233
233
"""
234
234
)
235
235
236
+ def oldPodVersion ():
237
+ return (wrapper (
238
+ """
239
+ pod "ReactiveSwift", "= 3.0.0", :binary => true
240
+ """ ) ,
241
+ """
242
+ import ReactiveSwift
243
+ class A {
244
+ // Works on 3.x but not 4.x
245
+ let a = A.b(SignalProducer<Int, NSError>.empty)
246
+ static func b<U: BindingSource>(_ b: U) -> Bool {
247
+ return true
248
+ }
249
+ }
250
+ """
251
+ )
252
+
253
+ def upgradePodVersion ():
254
+ return (wrapper (
255
+ """
256
+ pod "ReactiveSwift", "= 4.0.0", :binary => true
257
+ """ ) ,
258
+ """
259
+ import ReactiveSwift
260
+ class A {
261
+ func b() {
262
+ // Works on 4.x but not 3.x
263
+ Lifetime.make().token.dispose()
264
+ }
265
+ }
266
+ """
267
+ )
268
+
236
269
237
270
if __name__ == "__main__" :
238
271
arg = sys .argv [1 ]
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build() {
7
7
8
8
rm -rf Pods
9
9
10
- cases=(" initial" " addSwiftPod" " revertToSourceCode" " addDifferentNamePod" " addSubPod" " deleteAPod" " addVendoredLibPod" " universalFlag" " multiplePlatforms" " multiplePlatformsWithALLFlag" )
10
+ cases=(" initial" " addSwiftPod" " revertToSourceCode" " addDifferentNamePod" " addSubPod" " deleteAPod" " addVendoredLibPod" " universalFlag" " multiplePlatforms" " multiplePlatformsWithALLFlag" " oldPodVersion " " upgradePodVersion " )
11
11
for action in ${cases[@]} ; do
12
12
python change_podfile.py ${action}
13
13
bundle exec pod install
You can’t perform that action at this time.
0 commit comments