From 121bf068c9a12929f8888c45cea5ec3db5d3c605 Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Sat, 18 Nov 2023 12:53:58 +0100 Subject: [PATCH 1/3] fix Task not available before iOS 13 --- Sources/Neon/RangeStateValidator.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Neon/RangeStateValidator.swift b/Sources/Neon/RangeStateValidator.swift index ae9b997..3815458 100644 --- a/Sources/Neon/RangeStateValidator.swift +++ b/Sources/Neon/RangeStateValidator.swift @@ -1,7 +1,7 @@ import Foundation import Rearrange -@available(macOS 10.15, *) +@available(macOS 10.15, iOS 13.0, *) public final class RangeStateValidator { public enum ValidationResult: Sendable, Hashable { case success(NSRange) @@ -94,7 +94,7 @@ public final class RangeStateValidator { } } -@available(macOS 10.15, *) +@available(macOS 10.15, iOS 13.0, *) extension RangeStateValidator { private var length: Int { configuration.lengthProvider() @@ -123,7 +123,7 @@ extension RangeStateValidator { } } -@available(macOS 10.15, *) +@available(macOS 10.15, iOS 13.0, *) extension RangeStateValidator { /// Computes the next contiguous invalid range private func nextNeededRange() -> NSRange? { From 20a5e5e910ed21778f69fe0fafbb6f5d5457c77b Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Sat, 18 Nov 2023 12:55:07 +0100 Subject: [PATCH 2/3] fix Task not available before watchOS 6 --- Sources/Neon/RangeStateValidator.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Neon/RangeStateValidator.swift b/Sources/Neon/RangeStateValidator.swift index 3815458..d082562 100644 --- a/Sources/Neon/RangeStateValidator.swift +++ b/Sources/Neon/RangeStateValidator.swift @@ -1,7 +1,7 @@ import Foundation import Rearrange -@available(macOS 10.15, iOS 13.0, *) +@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) public final class RangeStateValidator { public enum ValidationResult: Sendable, Hashable { case success(NSRange) @@ -94,7 +94,7 @@ public final class RangeStateValidator { } } -@available(macOS 10.15, iOS 13.0, *) +@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) extension RangeStateValidator { private var length: Int { configuration.lengthProvider() @@ -123,7 +123,7 @@ extension RangeStateValidator { } } -@available(macOS 10.15, iOS 13.0, *) +@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) extension RangeStateValidator { /// Computes the next contiguous invalid range private func nextNeededRange() -> NSRange? { From b4ecf23b867fda0aee28980cc6b9d7711ba3ae07 Mon Sep 17 00:00:00 2001 From: Christian Tietze Date: Sat, 18 Nov 2023 12:56:16 +0100 Subject: [PATCH 3/3] bump watchOS target to match SwiftTreeSitter --- Package.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index b53e835..950a547 100644 --- a/Package.swift +++ b/Package.swift @@ -4,7 +4,7 @@ import PackageDescription let package = Package( name: "Neon", - platforms: [.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v4)], + platforms: [.macOS(.v10_13), .iOS(.v11), .tvOS(.v11), .watchOS(.v5)], products: [ .library(name: "Neon", targets: ["Neon"]), ],