diff --git a/.circleci/config.yml b/.circleci/config.yml index 52f928e..16da452 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,12 +4,12 @@ version: 2.1 anchors: - - &test_device "iPhone 14" - - &test_device_os "16.2" + - &test_device "iPhone 15" + - &test_device_os "17.0" - &clean_before_build true - &default_executor macos: - xcode: "14.2.0" + xcode: "15.0.0" env: global: @@ -145,15 +145,15 @@ jobs: - store_test_results: path: swiftlint.html - test-xcode13-ios15: + test-xcode14-ios16: macos: - xcode: "13.0.0" + xcode: "14.0.0" steps: - test_main_project: - simulator: "iPhone 13" - os_version: "15.0" + simulator: "iPhone 14" + os_version: "16.0" - test-xcode14-ios16: + test-xcode15-ios17: <<: *default_executor steps: - test_main_project @@ -170,7 +170,7 @@ workflows: jobs: - swiftlint: version: 0.49.1 - - test-xcode13-ios15 - test-xcode14-ios16 + - test-xcode15-ios17 - test-example-login diff --git a/Flow/Bridges/Signal+Combine.swift b/Flow/Bridges/Signal+Combine.swift index 19dca37..6df2a3b 100644 --- a/Flow/Bridges/Signal+Combine.swift +++ b/Flow/Bridges/Signal+Combine.swift @@ -11,7 +11,7 @@ extension CoreSignal { final class SignalPublisher: Publisher, Cancellable { typealias Output = Value typealias Failure = Error - + internal var signal: CoreSignal internal var bag: CancelBag @@ -22,7 +22,7 @@ extension CoreSignal { func receive( subscriber: S - ) where S : Subscriber, Failure == S.Failure, Value == S.Input { + ) where S: Subscriber, Failure == S.Failure, Value == S.Input { // Creating our custom subscription instance: let subscription = EventSubscription() subscription.target = subscriber @@ -56,11 +56,11 @@ extension CoreSignal { cancel() } } - + @available(iOS 13.0, macOS 10.15, *) final class EventSubscription: Subscription where Target.Input == Value { - + var target: Target? func request(_ demand: Subscribers.Demand) {} @@ -76,12 +76,12 @@ extension CoreSignal { _ = target?.receive(completion: .finished) } } - + func trigger(for value: Value) { _ = target?.receive(value) } } - + @available(iOS 13.0, macOS 10.15, *) public var asAnyPublisher: AnyPublisher { SignalPublisher(signal: self).eraseToAnyPublisher() diff --git a/Flow/Bridges/Signal+SwiftUI.swift b/Flow/Bridges/Signal+SwiftUI.swift index 7198567..f9198f6 100644 --- a/Flow/Bridges/Signal+SwiftUI.swift +++ b/Flow/Bridges/Signal+SwiftUI.swift @@ -33,6 +33,6 @@ extension CoreSignal where Kind == Read { set: { _ in } ) } - + } #endif