Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let products: [Product] = [
let dependencies: [Package.Dependency] = [
.package(
url: "https://github.com/grpc/grpc-swift.git",
from: "2.1.0"
from: "2.2.0"
),
.package(
url: "https://github.com/apple/swift-protobuf.git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct ProtobufCodeGeneratorTests {
// MARK: - test.TestService

/// Namespace containing generated types for the "test.TestService" service.
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
\(access) enum Test_TestService {
/// Service descriptor for the "test.TestService" service.
\(access) static let descriptor = GRPCCore.ServiceDescriptor(fullyQualifiedService: "test.TestService")
Expand Down Expand Up @@ -133,13 +134,15 @@ struct ProtobufCodeGeneratorTests {
}
}

@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension GRPCCore.ServiceDescriptor {
/// Service descriptor for the "test.TestService" service.
\(access) static let test_TestService = GRPCCore.ServiceDescriptor(fullyQualifiedService: "test.TestService")
}

// MARK: test.TestService (server)

@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService {
/// Streaming variant of the service protocol for the "test.TestService" service.
///
Expand Down Expand Up @@ -401,6 +404,7 @@ struct ProtobufCodeGeneratorTests {
}

// Default implementation of 'registerMethods(with:)'.
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService.StreamingServiceProtocol {
\(access) func registerMethods<Transport>(with router: inout GRPCCore.RPCRouter<Transport>) where Transport: GRPCCore.ServerTransport {
router.registerHandler(
Expand Down Expand Up @@ -451,6 +455,7 @@ struct ProtobufCodeGeneratorTests {
}

// Default implementation of streaming methods from 'StreamingServiceProtocol'.
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService.ServiceProtocol {
\(access) func unary(
request: GRPCCore.StreamingServerRequest<Test_TestInput>,
Expand Down Expand Up @@ -487,6 +492,7 @@ struct ProtobufCodeGeneratorTests {
}

// Default implementation of methods from 'ServiceProtocol'.
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService.SimpleServiceProtocol {
\(access) func unary(
request: GRPCCore.ServerRequest<Test_TestInput>,
Expand Down Expand Up @@ -551,6 +557,7 @@ struct ProtobufCodeGeneratorTests {

// MARK: test.TestService (client)

@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService {
/// Generated client protocol for the "test.TestService" service.
///
Expand Down Expand Up @@ -809,6 +816,7 @@ struct ProtobufCodeGeneratorTests {
}

// Helpers providing default arguments to 'ClientProtocol' methods.
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService.ClientProtocol {
/// Call the "Unary" method.
///
Expand Down Expand Up @@ -924,6 +932,7 @@ struct ProtobufCodeGeneratorTests {
}

// Helpers providing sugared APIs for 'ClientProtocol' methods.
@available(macOS 15.0, iOS 18.0, watchOS 11.0, tvOS 18.0, visionOS 2.0, *)
extension Test_TestService.ClientProtocol {
/// Call the "Unary" method.
///
Expand Down
Loading