mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
[Swift] Migrate to swift 6.0 and Implements support gRPC v2 (#8983)
* Migrate to swift 6.0 & swift-gRPC 2.0 The following migrates to swift 6.0, and also migrate to swift-grpc 2.0 that uses swift-nio under the hood to provide nicer API and async await Adds sendable to enum & update @_implementationOnly imports to use internal imports * Address PR comments regarding misspelling & proper method naming.
This commit is contained in:
@@ -20,6 +20,7 @@ from util import flatc, root_path
|
||||
grpc_examples_path = Path(root_path, "grpc/examples")
|
||||
|
||||
greeter_schema = str(Path(grpc_examples_path, "greeter.fbs"))
|
||||
greeter_schema_v2 = str(Path(grpc_examples_path, "greeter_v2.fbs"))
|
||||
|
||||
COMMON_ARGS = [
|
||||
"--grpc",
|
||||
@@ -54,8 +55,8 @@ def GenerateGRPCExamples():
|
||||
"--swift",
|
||||
"--gen-json-emit",
|
||||
],
|
||||
schema=greeter_schema,
|
||||
cwd=Path(grpc_examples_path, "swift/Greeter/Sources/Model"),
|
||||
schema=greeter_schema_v2,
|
||||
cwd=Path(grpc_examples_path, "swift/Greeter/Sources/Models"),
|
||||
)
|
||||
|
||||
flatc(
|
||||
|
||||
Reference in New Issue
Block a user