Skip to content

Commit 2204a68

Browse files
committed
[Hot Patch] Fix UIViewPropertyAnimator tests so they're only on iOS
1 parent e717a82 commit 2204a68

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

RxSwiftExt.xcodeproj/project.pbxproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
/* Begin PBXBuildFile section */
2525
188C6DA31C47B4240092101A /* RxSwift.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 188C6DA21C47B4240092101A /* RxSwift.framework */; };
2626
1A8741AC20745A91004BB762 /* UIViewPropertyAnimatorTests+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A8741AB20745A91004BB762 /* UIViewPropertyAnimatorTests+Rx.swift */; };
27-
1A8741AD20745A96004BB762 /* UIViewPropertyAnimatorTests+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A8741AB20745A91004BB762 /* UIViewPropertyAnimatorTests+Rx.swift */; };
28-
1A8741AE20745A97004BB762 /* UIViewPropertyAnimatorTests+Rx.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A8741AB20745A91004BB762 /* UIViewPropertyAnimatorTests+Rx.swift */; };
2927
1AA8395B207451D6001C49ED /* RxCocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1AA8395A207451D5001C49ED /* RxCocoa.framework */; };
3028
3D11958B1FCAD9AE0095134B /* and.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DBDE5FB1FBBAE3900DF47F9 /* and.swift */; };
3129
3D11958C1FCAD9AF0095134B /* and.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DBDE5FB1FBBAE3900DF47F9 /* and.swift */; };
@@ -1090,7 +1088,6 @@
10901088
62512CA21F0EB1850083A89F /* WeakTarget.swift in Sources */,
10911089
62512C9D1F0EB1850083A89F /* PausableTests.swift in Sources */,
10921090
62512C991F0EB1850083A89F /* MapToTests.swift in Sources */,
1093-
1A8741AE20745A97004BB762 /* UIViewPropertyAnimatorTests+Rx.swift in Sources */,
10941091
3DBDE6001FBBB09A00DF47F9 /* AndTests.swift in Sources */,
10951092
58C54302EC14B6FF2034BAF6 /* ZipWithTest.swift in Sources */,
10961093
);
@@ -1166,7 +1163,6 @@
11661163
E39C42091F18B13E007F2ACD /* NotTests.swift in Sources */,
11671164
E39C42081F18B13E007F2ACD /* Materialized+elementsTests.swift in Sources */,
11681165
E39C42071F18B13E007F2ACD /* MapToTests.swift in Sources */,
1169-
1A8741AD20745A96004BB762 /* UIViewPropertyAnimatorTests+Rx.swift in Sources */,
11701166
3DBDE6011FBBB09A00DF47F9 /* AndTests.swift in Sources */,
11711167
58C54B6E1B4C678DE2378145 /* ZipWithTest.swift in Sources */,
11721168
);

Source/RxCocoa/UIViewPropertyAnimator+Rx.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
// Copyright © 2017 RxSwift Community. All rights reserved.
77
//
88

9+
#if os(iOS)
910
import Foundation
1011
import UIKit
1112
import RxSwift
@@ -47,3 +48,4 @@ public extension Reactive where Base: UIViewPropertyAnimator {
4748
}
4849
}
4950
}
51+
#endif

Tests/RxCocoa/UIViewPropertyAnimatorTests+Rx.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ import RxSwiftExt
1313
import RxTest
1414
import UIKit
1515

16+
@available(iOS 10.0, *)
1617
class UIViewPropertyAnimatorTests: XCTestCase {
1718
var disposeBag: DisposeBag!
1819

1920
override func setUp() {
2021
disposeBag = DisposeBag()
2122
}
2223

23-
@available(iOS 10.0, *)
2424
func testAnimationCompleted() {
2525
let expectations = expectation(description: "Animation completed")
2626

@@ -41,7 +41,6 @@ class UIViewPropertyAnimatorTests: XCTestCase {
4141
waitForExpectations(timeout: 1)
4242
}
4343

44-
@available(iOS 10.0, *)
4544
func testBindToFractionCompleted() {
4645
let animator = UIViewPropertyAnimator(
4746
duration: 0, curve: .linear, animations: { }

0 commit comments

Comments
 (0)