Skip to content

Commit

Permalink
Use #if os instead of excluding source files
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkawa committed Nov 21, 2016
1 parent 5bddab0 commit 48d107b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ let package = Package(
targets: [],
dependencies: [
.Package(url: "https://github.com/ReactiveX/RxSwift.git", majorVersion: 3)
],
exclude: [
"Sources/Action/UIKitExtensions/AlertAction.swift",
"Sources/Action/UIKitExtensions/UIBarButtonItem+Action.swift",
"Sources/Action/UIKitExtensions/UIButton+Rx.swift",
]
)

2 changes: 2 additions & 0 deletions Sources/Action/UIKitExtensions/AlertAction.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if os(iOS) || os(tvOS)
import UIKit
import RxSwift
import RxCocoa
Expand Down Expand Up @@ -62,3 +63,4 @@ public extension Reactive where Base: UIAlertAction {
}
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/Action/UIKitExtensions/UIBarButtonItem+Action.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if os(iOS) || os(tvOS)
import UIKit
import RxSwift
import RxCocoa
Expand Down Expand Up @@ -37,3 +38,4 @@ public extension Reactive where Base: UIBarButtonItem {
}
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/Action/UIKitExtensions/UIButton+Rx.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if os(iOS) || os(tvOS)
import UIKit
import RxSwift
import RxCocoa
Expand Down Expand Up @@ -51,3 +52,4 @@ public extension Reactive where Base: UIButton {
}
}
}
#endif

0 comments on commit 48d107b

Please sign in to comment.