Skip to content

Commit

Permalink
Add iOS compatbility
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRabil committed Aug 24, 2021
1 parent 747fc4c commit 1649e40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/EricRabil/Swexy",
"state": {
"branch": null,
"revision": "a9d808e3f53c57ddab99c1d1643778d3b6a36187",
"version": "1.0.1"
"revision": "e8f656e5f1d1cad30f99b259d4d50e1e05c8a9f8",
"version": "1.0.4"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/EricRabil/Swexy", .upToNextMajor(from: "1.0.1"))
.package(url: "https://github.com/EricRabil/Swexy", .upToNextMajor(from: "1.0.4"))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
6 changes: 5 additions & 1 deletion Sources/Pwomise/Extensions/SubjectStream+OncePromise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
// Created by Eric Rabil on 8/24/21.
//

#if canImport(Combine)

import Foundation
import Swexy

@available(macOS 10.15, *)
@available(macOS 10.15, iOS 13.0, *)
public extension SubjectStream {
@discardableResult
func oncePromise(where valid: @escaping (Element) -> Bool) -> Promise<Element> {
Expand All @@ -17,3 +19,5 @@ public extension SubjectStream {
}
}
}

#endif

0 comments on commit 1649e40

Please sign in to comment.