@@ -17,7 +17,7 @@ You may use the build plugin either from the command line or from Xcode.
17
17
18
18
The build plugin (` GRPCProtobufGenerator ` ) is a great choice for convenient dynamic code generation, however it does come with some limitations.
19
19
Because it generates the gRPC Swift stubs as part of the build it has the requirement that ` protoc ` must be available
20
- at compile time. This requirements means it is not a good fit for library authors who do not have
20
+ at compile time. This requirement means it is not a good fit for library authors who do not have
21
21
direct control over this.
22
22
23
23
The build plugin detects ` .proto ` files in the source tree and invokes ` protoc ` once for each file
@@ -43,7 +43,7 @@ targets: [
43
43
)
44
44
]
45
45
```
46
- Once this is done you need to ensure that that the ` .proto ` files to be used for generation
46
+ Once this is done you need to ensure that the ` .proto ` files to be used for generation
47
47
are included in the target's source directory and that you have defined at least one configuration file.
48
48
49
49
### Configuration
@@ -80,8 +80,8 @@ The options do not need to be specified and each have default values.
80
80
| ` generate.messages ` | ` true ` , ` false ` | ` true ` | Generate message stubs |
81
81
| ` generatedSource.accessLevelOnImports ` | ` true ` , ` false ` | ` false ` | Whether imports should have explicit access levels |
82
82
| ` generatedSource.accessLevel ` | ` "public" ` , ` "package" ` , ` "internal" ` | ` "internal" ` | Access level for generated stubs |
83
- | ` protoc.executablePath ` | N/A | null† | Path to the ` protoc ` executable |
84
- | ` protoc.importPaths ` | N/A | null‡ | Import paths passed to ` protoc ` |
83
+ | ` protoc.executablePath ` | N/A | ` null ` † | Path to the ` protoc ` executable |
84
+ | ` protoc.importPaths ` | N/A | ` null ` ‡ | Import paths passed to ` protoc ` |
85
85
86
86
† The Swift Package Manager build plugin infrastructure will attempt to discover the executable's location if you don't provide one.
87
87
0 commit comments