diff options
Diffstat (limited to 'examples/objective-c')
-rw-r--r-- | examples/objective-c/auth_sample/README.md | 6 | ||||
-rw-r--r-- | examples/objective-c/helloworld/README.md | 4 | ||||
-rw-r--r-- | examples/objective-c/route_guide/README.md | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/objective-c/auth_sample/README.md b/examples/objective-c/auth_sample/README.md index 3dbe7e334c..5ae6452619 100644 --- a/examples/objective-c/auth_sample/README.md +++ b/examples/objective-c/auth_sample/README.md @@ -9,8 +9,8 @@ headers. - Read response metadata from a call, which is equivalent to HTTP response headers and trailers. It assumes you know the basics on how to make gRPC API calls using the Objective-C client library, -as shown in the [Hello World](examples/objective-c/helloworld) -or [Route Guide](examples/objective-c/route_guide) tutorials, +as shown in the [Hello World](../helloworld) +or [Route Guide](../route_guide) tutorials, and are familiar with OAuth2 concepts like _access token_. - [Example code and setup](#setup) @@ -22,7 +22,7 @@ and are familiar with OAuth2 concepts like _access token_. <a name="setup"></a> ## Example code and setup -The example code for our tutorial is in [examples/objective-c/auth_sample](examples/objective-c/auth_sample). +The example code for our tutorial is in [examples/objective-c/auth_sample](.). To download the example, clone this repository by running the following command: ```shell $ git clone https://github.com/grpc/grpc.git diff --git a/examples/objective-c/helloworld/README.md b/examples/objective-c/helloworld/README.md index 3b852f857f..75df1a7a26 100644 --- a/examples/objective-c/helloworld/README.md +++ b/examples/objective-c/helloworld/README.md @@ -8,7 +8,7 @@ testing). You can obtain the latter by following [these setup instructions](http ## Hello Objective-C gRPC! -Here's how to build and run the Objective-C implementation of the [Hello World](examples/protos/helloworld.proto) +Here's how to build and run the Objective-C implementation of the [Hello World](../../protos/helloworld.proto) example used in [Getting started](https://github.com/grpc/grpc/tree/master/examples). The example code for this and our other examples lives in the `examples` directory. Clone @@ -53,4 +53,4 @@ responds with a `HLWHelloResponse`, which contains a string that is then output ## Tutorial -You can find a more detailed tutorial in [gRPC Basics: Objective-C](examples/objective-c/route_guide/README.md). +You can find a more detailed tutorial in [gRPC Basics: Objective-C](../route_guide/README.md). diff --git a/examples/objective-c/route_guide/README.md b/examples/objective-c/route_guide/README.md index dd20a07995..15864c01f4 100644 --- a/examples/objective-c/route_guide/README.md +++ b/examples/objective-c/route_guide/README.md @@ -43,7 +43,7 @@ code is limited by the dynamic nature of the language. <a name="setup"></a> ## Example code and setup -The example code for our tutorial is in [examples/objective-c/route_guide](examples/objective-c/route_guide). +The example code for our tutorial is in [examples/objective-c/route_guide](.). To download the example, clone this repository by running the following command: ```shell $ git clone https://github.com/grpc/grpc.git @@ -97,7 +97,7 @@ a client library from it, and how to create an app that uses that library. First let's look at how the service we're using is defined. A gRPC *service* and its method *request* and *response* types using [protocol buffers](https://developers.google.com/protocol-buffers/docs/overview). -You can see the complete .proto file for our example in [`examples/protos/route_guide.proto`](examples/protos/route_guide.proto). +You can see the complete .proto file for our example in [`examples/protos/route_guide.proto`](../../protos/route_guide.proto). To define a service, you specify a named `service` in your .proto file: @@ -177,7 +177,7 @@ option objc_class_prefix = "RTG"; Next we need to generate the gRPC client interfaces from our .proto service definition. We do this using the protocol buffer compiler (`protoc`) with a special gRPC Objective-C plugin. -For simplicity, we've provided a [Podspec file](examples/objective-c/route_guide/RouteGuide.podspec) +For simplicity, we've provided a [Podspec file](RouteGuide.podspec) that runs `protoc` for you with the appropriate plugin, input, and output, and describes how to compile the generated files. You just need to run in this directory (`examples/objective-c/route_guide`): @@ -211,7 +211,7 @@ definition; just replace the name (matching the file name), version, and other m ## Creating the client In this section, we'll look at creating an Objective-C client for our `RouteGuide` service. You can -see our complete example client code in [examples/objective-c/route_guide/ViewControllers.m](examples/objective-c/route_guide/ViewControllers.m). +see our complete example client code in [ViewControllers.m](ViewControllers.m). (Note: In your apps, for maintainability and readability reasons, you shouldn't put all of your view controllers in a single file; it's done here only to simplify the learning process). |