Skip to content

Commit c47c975

Browse files
authored
Fix availability of health service (#2021)
Motivation: A couple of availability annotations for the health service were incorrect for some platforms. Modifications: - Update availability Result: Builds on iOS etc.
1 parent a72d937 commit c47c975

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Services/Health/Health.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public import GRPCCore
4040
/// forService: .bar_Foo
4141
/// )
4242
/// ```
43-
@available(macOS 15.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
43+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
4444
public struct Health: Sendable {
4545
/// An implementation of the `grpc.health.v1.Health` service.
4646
public let service: Health.Service
@@ -58,7 +58,7 @@ public struct Health: Sendable {
5858
}
5959
}
6060

61-
@available(macOS 15.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
61+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
6262
extension Health {
6363
/// An implementation of the `grpc.health.v1.Health` service.
6464
public struct Service: RegistrableRPCService, Sendable {

Sources/Services/Health/HealthService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
internal import GRPCCore
1818

19-
@available(macOS 15.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
19+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
2020
internal struct HealthService: Grpc_Health_V1_HealthServiceProtocol {
2121
private let state = HealthService.State()
2222

@@ -65,7 +65,7 @@ internal struct HealthService: Grpc_Health_V1_HealthServiceProtocol {
6565
}
6666
}
6767

68-
@available(macOS 15.0, iOS 16.0, watchOS 9.0, tvOS 16.0, *)
68+
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
6969
extension HealthService {
7070
private struct State: Sendable {
7171
// The state of each service keyed by the fully qualified service name.

0 commit comments

Comments
 (0)