From 9f45121c68121d64b266674c18c199eb4091724d Mon Sep 17 00:00:00 2001 From: maximkrouk Date: Tue, 17 Feb 2026 12:37:33 +0100 Subject: [PATCH 1/2] feat(CI): Check swift 5 --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a696376..cba3e64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,3 +35,25 @@ jobs: action: xcodebuild-test platform: ${{ matrix.platform }} scheme: swift-declarative-configuration-Package + + xcodebuild-swift5: + name: xcodebuild-swift5 + if: | + !contains(github.event.head_commit.message, '[ci skip]') && + !contains(github.event.head_commit.message, '[ci skip test]') + runs-on: macos-14 + strategy: + matrix: + platform: [iOS, macOS, macCatalyst, tvOS, watchOS] + xcode: ['15.4'] + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - name: Test + uses: capturecontext/swift-package-action/build@3.0-beta.13 + with: + xcode: ${{ matrix.xcode }} + cache-derived-data: true + action: xcodebuild + platform: ${{ matrix.platform }} + scheme: swift-declarative-configuration-Package From 5dc0e57d90bd852cb3b6e500ea755856fd3e0a7e Mon Sep 17 00:00:00 2001 From: maximkrouk Date: Tue, 17 Feb 2026 14:06:55 +0100 Subject: [PATCH 2/2] feat: Add swift checks --- Sources/Deprecated/FunctionalClosures/Deprecated.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/Deprecated/FunctionalClosures/Deprecated.swift b/Sources/Deprecated/FunctionalClosures/Deprecated.swift index ba08f8e..eac3945 100644 --- a/Sources/Deprecated/FunctionalClosures/Deprecated.swift +++ b/Sources/Deprecated/FunctionalClosures/Deprecated.swift @@ -6,6 +6,7 @@ public enum HandlerContainerBehaviour { case appending } +#if swift(>=5.10) /// A wrapper for clusure-based interaction between objects /// /// Provides a public API to set internal closure-based hanlder or delegate with a functional API @@ -48,6 +49,7 @@ public class _Handler { projectedValue?(repeat each input) } } +#endif @available(*, deprecated, message: "If you use this functionality, consider copying sources and please submit an issue to the repo, our advice is to use Combine/Observation instead") public typealias Handler = Handler1 @@ -432,6 +434,7 @@ func unpack( // MARK: - DataSource +#if swift(>=5.10) /// A wrapper for clusure-based interaction between objects /// /// Provides a public API to set internal closure-based datasource with a functional API @@ -470,6 +473,7 @@ public class _DataSource { projectedValue(repeat each args) } } +#endif /// A wrapper for clusure-based interaction between objects ///