Skip to content

Commit b0dda37

Browse files
committed
Rename package to grpc-swift-2
1 parent 36e1ad1 commit b0dda37

25 files changed

+82
-84
lines changed

Examples/echo-metadata/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ let package = Package(
2121
name: "echo-metadata",
2222
platforms: [.macOS("15.0")],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
26-
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
26+
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "2.0.0"),
2727
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
2828
],
2929
targets: [
3030
.executableTarget(
3131
name: "echo-metadata",
3232
dependencies: [
33-
.product(name: "GRPCCore", package: "grpc-swift"),
33+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3434
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
3535
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3636
.product(name: "ArgumentParser", package: "swift-argument-parser"),

Examples/echo/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ let package = Package(
2121
name: "echo",
2222
platforms: [.macOS("15.0")],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
26-
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
26+
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "2.0.0"),
2727
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
2828
],
2929
targets: [
3030
.executableTarget(
3131
name: "echo",
3232
dependencies: [
33-
.product(name: "GRPCCore", package: "grpc-swift"),
33+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3434
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
3535
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3636
.product(name: "ArgumentParser", package: "swift-argument-parser"),

Examples/error-details/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ let package = Package(
2121
name: "error-details",
2222
platforms: [.macOS(.v15)],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
2626
],
2727
targets: [
2828
.executableTarget(
2929
name: "error-details",
3030
dependencies: [
31-
.product(name: "GRPCCore", package: "grpc-swift"),
32-
.product(name: "GRPCInProcessTransport", package: "grpc-swift"),
31+
.product(name: "GRPCCore", package: "grpc-swift-2"),
32+
.product(name: "GRPCInProcessTransport", package: "grpc-swift-2"),
3333
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3434
],
3535
plugins: [

Examples/hello-world/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ let package = Package(
2121
name: "hello-world",
2222
platforms: [.macOS("15.0")],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
26-
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
26+
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "2.0.0"),
2727
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
2828
],
2929
targets: [
3030
.executableTarget(
3131
name: "hello-world",
3232
dependencies: [
33-
.product(name: "GRPCCore", package: "grpc-swift"),
33+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3434
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
3535
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3636
.product(name: "ArgumentParser", package: "swift-argument-parser"),

Examples/reflection-server/Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ let package = Package(
2121
name: "reflection-server",
2222
platforms: [.macOS(.v15)],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
26-
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
27-
.package(url: "https://github.com/grpc/grpc-swift-extras.git", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
26+
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "2.0.0"),
27+
.package(url: "https://github.com/grpc/grpc-swift-extras.git", from: "2.0.0"),
2828
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
2929
],
3030
targets: [
3131
.executableTarget(
3232
name: "reflection-server",
3333
dependencies: [
34-
.product(name: "GRPCCore", package: "grpc-swift"),
34+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3535
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
3636
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3737
.product(name: "GRPCReflectionService", package: "grpc-swift-extras"),

Examples/route-guide/Package.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ let package = Package(
2121
name: "route-guide",
2222
platforms: [.macOS("15.0")],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
26-
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
26+
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "2.0.0"),
2727
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.5.0"),
2828
],
2929
targets: [
3030
.executableTarget(
3131
name: "route-guide",
3232
dependencies: [
33-
.product(name: "GRPCCore", package: "grpc-swift"),
33+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3434
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
3535
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3636
.product(name: "ArgumentParser", package: "swift-argument-parser"),

Examples/service-lifecycle/Package.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ let package = Package(
2121
name: "service-lifecycle",
2222
platforms: [.macOS(.v15)],
2323
dependencies: [
24-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
25-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
26-
.package(url: "https://github.com/grpc/grpc-swift-extras", from: "1.0.0"),
24+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
25+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
26+
.package(url: "https://github.com/grpc/grpc-swift-extras.git", from: "2.0.0"),
2727
],
2828
targets: [
2929
.executableTarget(
3030
name: "service-lifecycle",
3131
dependencies: [
32-
.product(name: "GRPCCore", package: "grpc-swift"),
33-
.product(name: "GRPCInProcessTransport", package: "grpc-swift"),
32+
.product(name: "GRPCCore", package: "grpc-swift-2"),
33+
.product(name: "GRPCInProcessTransport", package: "grpc-swift-2"),
3434
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
3535
.product(name: "GRPCServiceLifecycle", package: "grpc-swift-extras"),
3636
],

IntegrationTests/Benchmarks/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let package = Package(
3030
name: "GRPCSwiftBenchmark",
3131
dependencies: [
3232
.product(name: "Benchmark", package: "package-benchmark"),
33-
.product(name: "GRPCCore", package: "grpc-swift"),
33+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3434
],
3535
path: "Benchmarks/GRPCSwiftBenchmark",
3636
plugins: [

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let dependencies: [Package.Dependency] = [
5050

5151
// This adds some build settings which allow us to map "@available(gRPCSwift 2.x, *)" to
5252
// the appropriate OS platforms.
53-
let nextMinorVersion = 2
53+
let nextMinorVersion = 1
5454
let availabilitySettings: [SwiftSetting] = (0 ... nextMinorVersion).map { minor in
5555
let name = "gRPCSwift"
5656
let version = "2.\(minor)"
@@ -123,7 +123,7 @@ let targets: [Target] = [
123123
]
124124

125125
let package = Package(
126-
name: "grpc-swift",
126+
name: "grpc-swift-2",
127127
products: products,
128128
dependencies: dependencies,
129129
targets: targets

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ about gRPC on the [gRPC project's website][grpcio].
99
- 🪪 **License** is Apache 2.0, repeated in [LICENSE](License)
1010
- 🔒 **Security** issues should be reported via the process in [SECURITY.md](SECURITY.md)
1111
- 🔀 **Related Repositories**:
12-
- [`grpc-swift-nio-transport`][grpc-swift-nio-transport] contains high-performance HTTP/2 client and server transport implementations for gRPC Swift built on top of SwiftNIO.
13-
- [`grpc-swift-protobuf`][grpc-swift-protobuf] contains integrations with SwiftProtobuf for gRPC Swift.
14-
- [`grpc-swift-extras`][grpc-swift-extras] contains optional extras for gRPC Swift.
12+
- [`grpc-swift-nio-transport`][grpc-swift-nio-transport] contains
13+
high-performance HTTP/2 client and server transport implementations for gRPC
14+
Swift built on top of SwiftNIO.
15+
- [`grpc-swift-protobuf`][grpc-swift-protobuf] contains integrations with
16+
SwiftProtobuf for gRPC Swift.
17+
- [`grpc-swift-extras`][grpc-swift-extras] contains optional extras for gRPC
18+
Swift.
1519

1620

1721
## Quick Start
@@ -27,15 +31,15 @@ let package = Package(
2731
name: "Application",
2832
platforms: [.macOS("15.0")],
2933
dependencies: [
30-
.package(url: "https://github.com/grpc/grpc-swift.git", from: "2.0.0"),
31-
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "1.0.0"),
32-
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "1.0.0"),
34+
.package(url: "https://github.com/grpc/grpc-swift-2.git", from: "2.0.0"),
35+
.package(url: "https://github.com/grpc/grpc-swift-nio-transport.git", from: "2.0.0"),
36+
.package(url: "https://github.com/grpc/grpc-swift-protobuf.git", from: "2.0.0"),
3337
],
3438
targets: [
3539
.executableTarget(
3640
name: "Server",
3741
dependencies: [
38-
.product(name: "GRPCCore", package: "grpc-swift"),
42+
.product(name: "GRPCCore", package: "grpc-swift-2"),
3943
.product(name: "GRPCNIOTransportHTTP2", package: "grpc-swift-nio-transport"),
4044
.product(name: "GRPCProtobuf", package: "grpc-swift-protobuf"),
4145
]
@@ -46,7 +50,7 @@ let package = Package(
4650

4751
[gh-grpc]: https://github.com/grpc/grpc
4852
[grpcio]: https://grpc.io
49-
[spi-grpc-swift]: https://swiftpackageindex.com/grpc/grpc-swift/documentation
53+
[spi-grpc-swift]: https://swiftpackageindex.com/grpc/grpc-swift-2/documentation
5054
[grpc-swift-nio-transport]: https://github.com/grpc/grpc-swift-nio-transport
5155
[grpc-swift-protobuf]: https://github.com/grpc/grpc-swift-protobuf
5256
[grpc-swift-extras]: https://github.com/grpc/grpc-swift-extras

0 commit comments

Comments
 (0)