Merge pull request #190 from madongfly/fix

Fix breakage due to gRPC java package change: nano -> protobuf.nano
pull/3109/head
Xudong Ma 10 years ago
commit 7665cf3dde
  1. 2
      java/android/app/build.gradle
  2. 8
      java/android/app/src/main/java/io/grpc/helloworldexample/GreeterGrpc.java

@ -28,7 +28,7 @@ dependencies {
// You need to build the https://github.com/grpc/grpc-java
// to obtain these libraries below.
compile 'io.grpc:grpc-core:0.1.0-SNAPSHOT'
compile 'io.grpc:grpc-nano:0.1.0-SNAPSHOT'
compile 'io.grpc:grpc-protobuf-nano:0.1.0-SNAPSHOT'
compile 'io.grpc:grpc-okhttp:0.1.0-SNAPSHOT'
compile 'io.grpc:grpc-stub:0.1.0-SNAPSHOT'
}

@ -15,15 +15,15 @@ public class GreeterGrpc {
Helloworld.HelloReply> METHOD_SAY_HELLO =
io.grpc.stub.Method.create(
io.grpc.MethodType.UNARY, "SayHello",
io.grpc.nano.NanoUtils.<Helloworld.HelloRequest>marshaller(
new io.grpc.nano.Parser<Helloworld.HelloRequest>() {
io.grpc.protobuf.nano.NanoUtils.<Helloworld.HelloRequest>marshaller(
new io.grpc.protobuf.nano.Parser<Helloworld.HelloRequest>() {
@Override
public Helloworld.HelloRequest parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
return Helloworld.HelloRequest.parseFrom(input);
}
}),
io.grpc.nano.NanoUtils.<Helloworld.HelloReply>marshaller(
new io.grpc.nano.Parser<Helloworld.HelloReply>() {
io.grpc.protobuf.nano.NanoUtils.<Helloworld.HelloReply>marshaller(
new io.grpc.protobuf.nano.Parser<Helloworld.HelloReply>() {
@Override
public Helloworld.HelloReply parse(com.google.protobuf.nano.CodedInputByteBufferNano input) throws IOException {
return Helloworld.HelloReply.parseFrom(input);

Loading…
Cancel
Save