https://kotlinlang.org logo
#grpc
Title
# grpc
c

Cristian Nicolas Gonzalez

04/15/2022, 10:25 PM
Hi! Does someone have a minimal setup to gradle kotlin grpc? I tried this https://github.com/grpc/grpc-kotlin/blob/master/compiler/README.md but it doesn’t work because it miss coroutines depedency and also I have this error
@io.grpc.stub.annotations.GrpcGenerated
^
symbol:   class GrpcGenerated
location: package io.grpc.stub.annotations
d

Dariusz Kuc

04/15/2022, 10:46 PM
have you looked at the examples?
c

Cristian Nicolas Gonzalez

04/16/2022, 3:04 AM
Yes! I have, but I didn’t find a server side´s minimal setup
k

Kartick Vijayakumar

04/24/2022, 4:34 AM
Try this and let me know
It has a gitsubmodule which contains the proto models
If you are interested in infrastructure and client, we have a workspace that contains starters for all - https://github.com/hwslabs/bar-service
d

davec

06/27/2022, 9:07 PM
The official examples aren't very good, I'd avoid them if possible. They basically document every possible way that you can create every possible type of server with every possible type of client (including Android) and they do it using a pretty complex nested Gradle structure. I have my own minimal client example but it needs to be cleaned up a bit, if I get that done I'll post a link.
200 Views