Skip to content

Commit

Permalink
:(
Browse files Browse the repository at this point in the history
  • Loading branch information
feuyeux committed Oct 5, 2024
1 parent 9b11433 commit 6d10457
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
16 changes: 10 additions & 6 deletions hello-grpc-swift/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,24 @@ extension Target.Dependency {
static let helloCommon: Self = .target(name: "HelloCommon")

// Product dependencies
static let argumentParser: Self = .product(name: "ArgumentParser", package: "swift-argument-parser")
static let argumentParser: Self = .product(
name: "ArgumentParser", package: "swift-argument-parser")
static let grpc: Self = .product(name: "GRPC", package: "grpc-swift")
static let nio: Self = .product(name: "NIO", package: "swift-nio")
static let nioConcurrencyHelpers: Self = .product(name: "NIOConcurrencyHelpers", package: "swift-nio")
static let nioConcurrencyHelpers: Self = .product(
name: "NIOConcurrencyHelpers", package: "swift-nio")
static let nioCore: Self = .product(name: "NIOCore", package: "swift-nio")
static let nioEmbedded: Self = .product(name: "NIOEmbedded", package: "swift-nio")
static let nioExtras: Self = .product(name: "NIOExtras", package: "swift-nio-extras")
static let nioFoundationCompat: Self = .product(name: "NIOFoundationCompat", package: "swift-nio")
static let nioFoundationCompat: Self = .product(
name: "NIOFoundationCompat", package: "swift-nio")
static let nioHTTP1: Self = .product(name: "NIOHTTP1", package: "swift-nio")
static let nioHTTP2: Self = .product(name: "NIOHTTP2", package: "swift-nio-http2")
static let nioPosix: Self = .product(name: "NIOPosix", package: "swift-nio")
static let nioSSL: Self = .product(name: "NIOSSL", package: "swift-nio-ssl")
static let nioTLS: Self = .product(name: "NIOTLS", package: "swift-nio")
static let nioTransportServices: Self = .product(name: "NIOTransportServices", package: "swift-nio-transport-services")
static let nioTransportServices: Self = .product(
name: "NIOTransportServices", package: "swift-nio-transport-services")
static let logging: Self = .product(name: "Logging", package: "swift-log")
static let protobuf: Self = .product(name: "SwiftProtobuf", package: "swift-protobuf")
}
Expand All @@ -44,7 +48,7 @@ extension Target {
],
path: "Sources/Common",
exclude: [
"landing.proto",
"landing.proto"
]
)

Expand Down Expand Up @@ -76,7 +80,7 @@ extension Target {
static let helloCommonUT: Target = .testTarget(
name: "HelloCommonTest",
dependencies: [
"HelloCommon",
"HelloCommon"
],
path: "Tests/helloTests"
)
Expand Down
9 changes: 9 additions & 0 deletions hello-grpc-swift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,17 @@ rm -rf .build
Clean: ⇧shift+⌘cmd+K in xcode
```

```sh

export proxy_port=56458
export http_proxy=127.0.0.1:$proxy_port
export https_proxy=127.0.0.1:$proxy_port
```

```sh
swift build
swift build --product protoc-gen-swift
swift build --product protoc-gen-grpc-swift
```

## run
Expand Down
3 changes: 2 additions & 1 deletion hello-grpc-swift/fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ cd "$(
)/" || exit
set -e

swiftformat --indent 4 --swiftversion 5.10 --exclude "**/*.grpc.swift,**/*.pb.swift" .
# swiftformat --indent 4 --swiftversion 5.10 --exclude "**/*.grpc.swift,**/*.pb.swift" .
swift-format --indent 4 --swiftversion 6.0.1 --exclude "**/*.grpc.swift,**/*.pb.swift" .

0 comments on commit 6d10457

Please sign in to comment.