aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/objective-c
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-10-28 06:07:26 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-10-28 06:07:26 -0700
commit2f0d11bf2ad6dda052aa72b5991dc1634f12bce4 (patch)
tree728a86def04b4085d0ef405635a0fd0c56576e7d /examples/objective-c
parent6f7e26a5772bf363450aa32618dd20bcb4a07ae3 (diff)
Fix build breakage.
Diffstat (limited to 'examples/objective-c')
-rw-r--r--examples/objective-c/route_guide/ViewControllers.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/objective-c/route_guide/ViewControllers.m b/examples/objective-c/route_guide/ViewControllers.m
index 61367fdf85..0b1a1cf482 100644
--- a/examples/objective-c/route_guide/ViewControllers.m
+++ b/examples/objective-c/route_guide/ViewControllers.m
@@ -32,6 +32,7 @@
*/
#import <UIKit/UIKit.h>
+#import <GRPCClient/GRPCCall+Tests.h>
#import <RouteGuide/RouteGuide.pbrpc.h>
#import <RxLibrary/GRXWriter+Immediate.h>
#import <RxLibrary/GRXWriter+Transformations.h>
@@ -90,7 +91,7 @@ static NSString * const kHostAddress = @"localhost:50051";
// This only needs to be done once per host, before creating service objects for that host.
[GRPCCall useInsecureConnectionsForHost:kHostAddress];
- RTGRouteGuide *service = [RTGRouteGuide serviceWithHost:kHostAddress];
+ RTGRouteGuide *service = [[RTGRouteGuide alloc] initWithHost:kHostAddress];
void (^handler)(RTGFeature *response, NSError *error) = ^(RTGFeature *response, NSError *error) {
if (response.name.length) {
@@ -127,7 +128,7 @@ static NSString * const kHostAddress = @"localhost:50051";
- (void)viewDidLoad {
[super viewDidLoad];
- RTGRouteGuide *service = [RTGRouteGuide serviceWithHost:kHostAddress];
+ RTGRouteGuide *service = [[RTGRouteGuide alloc] initWithHost:kHostAddress];
RTGRectangle *rectangle = [RTGRectangle message];
rectangle.lo.latitude = 405E6;
@@ -177,7 +178,7 @@ static NSString * const kHostAddress = @"localhost:50051";
return location;
}];
- RTGRouteGuide *service = [RTGRouteGuide serviceWithHost:kHostAddress];
+ RTGRouteGuide *service = [[RTGRouteGuide alloc] initWithHost:kHostAddress];
[service recordRouteWithRequestsWriter:locations
handler:^(RTGRouteSummary *response, NSError *error) {
@@ -218,7 +219,7 @@ static NSString * const kHostAddress = @"localhost:50051";
return note;
}];
- RTGRouteGuide *service = [RTGRouteGuide serviceWithHost:kHostAddress];
+ RTGRouteGuide *service = [[RTGRouteGuide alloc] initWithHost:kHostAddress];
[service routeChatWithRequestsWriter:notesWriter
eventHandler:^(BOOL done, RTGRouteNote *note, NSError *error) {