Skip to content

Commit 27b9c5c

Browse files
devxoulkzaher
authored andcommitted
Add if statement for checking iOS/tvOS
1 parent 308a6d7 commit 27b9c5c

9 files changed

+18
-0
lines changed

Sources/RxDataSources/AnimationConfiguration.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112

@@ -25,3 +26,4 @@ public struct AnimationConfiguration {
2526
self.deleteAnimation = deleteAnimation
2627
}
2728
}
29+
#endif

Sources/RxDataSources/Array+Extensions.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011

1112
extension Array where Element: SectionModelType {
@@ -25,3 +26,4 @@ extension Array where Element: SectionModelType {
2526
self[destinationIndexPath.section] = Element(original: destinationSection, items: destinationItems)
2627
}
2728
}
29+
#endif

Sources/RxDataSources/CollectionViewSectionedDataSource.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
#if !RX_NO_MODULE
@@ -207,3 +208,4 @@ open class CollectionViewSectionedDataSource<S: SectionModelType>
207208
}
208209

209210
}
211+
#endif

Sources/RxDataSources/RxCollectionViewSectionedAnimatedDataSource.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
#if !RX_NO_MODULE
@@ -100,3 +101,4 @@ open class RxCollectionViewSectionedAnimatedDataSource<S: AnimatableSectionModel
100101
}.on(observedEvent)
101102
}
102103
}
104+
#endif

Sources/RxDataSources/RxCollectionViewSectionedReloadDataSource.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
#if !RX_NO_MODULE
@@ -35,3 +36,4 @@ open class RxCollectionViewSectionedReloadDataSource<S: SectionModelType>
3536
}.on(observedEvent)
3637
}
3738
}
39+
#endif

Sources/RxDataSources/RxTableViewSectionedAnimatedDataSource.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
#if !RX_NO_MODULE
@@ -65,3 +66,4 @@ open class RxTableViewSectionedAnimatedDataSource<S: AnimatableSectionModelType>
6566
}.on(observedEvent)
6667
}
6768
}
69+
#endif

Sources/RxDataSources/RxTableViewSectionedReloadDataSource.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
#if !RX_NO_MODULE
@@ -33,3 +34,4 @@ open class RxTableViewSectionedReloadDataSource<S: SectionModelType>
3334
}.on(observedEvent)
3435
}
3536
}
37+
#endif

Sources/RxDataSources/TableViewSectionedDataSource.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
#if !RX_NO_MODULE
@@ -290,3 +291,4 @@ open class TableViewSectionedDataSource<S: SectionModelType>
290291
}
291292
#endif
292293
}
294+
#endif

Sources/RxDataSources/UI+SectionedViewType.swift

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

9+
#if os(iOS) || os(tvOS)
910
import Foundation
1011
import UIKit
1112
import Differentiator
@@ -146,3 +147,4 @@ func _performBatchUpdates<V: SectionedViewType, S: SectionModelType>(_ view: V,
146147
)
147148
}
148149
}
150+
#endif

0 commit comments

Comments
 (0)