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 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 ///