I've set up my project in Android Studio to use the Square Wire library, as per this question.
Build -> Compile Project works fine.
2:03:10 PM Compilation completed successfully in 31 sec
However, if I open one of my generated Protocol Buffer…
For instance, attaching Metadata to a stub as headers would look something like
val stub = MetadataUtils.attachHeaders(
SomeCoroutineGrpc.newStubWithContext(channel),
metadata.toMetadata()
…
I am trying to generate files using the square's Wire. I could run their sample all good, but as soon as I added
import "google/protobuf/timestamp.proto"; to their .proto file
to check how wire treats timestamps, compiler broke with this…
After adding Square's Wire library for Protobuf support in an Android project, I'm getting the following D8 exception during compilation:
D8: Program type already present:…
I want to use interfaces for both client and server in the same android app. Usecase is to run a okhttpmockwebserver serving gRPC requests within the same app the client is running in. For this i created two library projects with their own wire…
For a project I've been using the Google protocol buffers, but now I want to switch to Wire. I want to compile my .proto file using the terminal like this
protoc -I=$SRC_DIR --java_out=$DST_DIR $SRC_DIR/addressbook.proto (this is for the google…
I'm trying to make a call to grpc syntax URL: https://photoslibrary.googleapis.com/v1/mediaItems:search
by using Wire framework.
First problem is putting /v1 in path as below configuration ignores it:
GrpcClient.Builder()
…
i need stream of a service gRPC with Wire and need use Flow on client, but executeBlocking() do not provide method with return via Flow, need implementation manual via flow emits?
Anyone help me to understand how can I generate protobuf in Kotlin?
I heard about gRPC, wire, KotlinPoet, but I don't understand what are the differences, which one should I use any samples, any simple documents please fill free to share with…
I am getting (using: api 'com.squareup.wire:wire-runtime:3.0.2')
Execution failed for task ':app:generateProtos'.
unable to resolve 1 imports: testing/tastes/tastes.proto
searching 0 proto paths:
My understanding is that I do not need to define…
My brain is fried. I searched S.O. for help but it seems Proguard issues with this exception are specific to the app in question. I've been trying to use Proguard to obfucate/minify my app and when I run it in the Generated APK form my app either…
use com.squareup.wire wire-runtime.
code:
Wire wire = new Wire();
VerifyTicketRsp ticketRsp = wire.parseFrom(moaResult.objectBytes, VerifyTicketRsp.class);
error info:
java.lang.IllegalArgumentException: No WireType for value 118
at…
Getting a NullPointerException when I try to serialize the result:
java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] com.squareup.wire.ProtoAdapter.encode(java.lang.Object)' on a null object reference
Tried using…
I'm using Square's Wire library for my Android app, using Android Studio with Gradle.
I originally added the wire-runtime-1.2.0.jar into a libs folder in my module, and added the dependency to Gradle like this in my build.gradle file:
dependencies…
I'm trying to learn about grpc and protocol buffers while creating a test app using square's wire library. I've got to the point of generating both client and server files but I got stuck in creating a server side app. The documentation is too…