Fixes the sample app to point to the new podspecs

pull/1327/head
Jorge Canizales 10 years ago
parent c2d7ecb699
commit 1d3734934f
  1. 6
      src/objective-c/examples/Sample/Podfile
  2. 17
      src/objective-c/examples/Sample/Sample/ViewController.m

@ -1,13 +1,11 @@
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'RxLibrary', :path => "../../RxLibrary"
pod 'GRPCClient', :path => "../../GRPCClient"
pod 'gRPC', :path => "../../../.."
pod 'RxLibrary', :path => "../../../.."
target 'Sample' do
end
target 'SampleTests' do
end

@ -32,8 +32,9 @@
*/
#import "ViewController.h"
#import <GRPCClient/GRPCCall.h>
#import <GRPCClient/GRPCMethodName.h>
#import <gRPC/GRPCCall.h>
#import <gRPC/GRPCMethodName.h>
#import <RxLibrary/GRXWriter+Immediate.h>
#import <RxLibrary/GRXWriteable.h>
@ -51,15 +52,19 @@
interface:@"TestService"
method:@"EmptyCall"];
GRPCCall *call = [[GRPCCall alloc] initWithHost:@"localhost"
id<GRXWriter> requestsWriter = [GRXWriter writerWithValue:[NSData data]];
GRPCCall *call = [[GRPCCall alloc] initWithHost:@"grpc-test.sandbox.google.com:443"
method:method
requestsWriter:[GRXWriter writerWithValue:[NSData data]]];
requestsWriter:requestsWriter];
[call startWithWriteable:[[GRXWriteable alloc] initWithValueHandler:^(NSData *value) {
id<GRXWriteable> responsesWriteable = [[GRXWriteable alloc] initWithValueHandler:^(NSData *value) {
NSLog(@"Received response: %@", value);
} completionHandler:^(NSError *errorOrNil) {
NSLog(@"Finished with error: %@", errorOrNil);
}]];
}];
[call startWithWriteable:responsesWriteable];
}
- (void)didReceiveMemoryWarning {

Loading…
Cancel
Save