https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

Eben Du Toit

03/03/2020, 8:18 AM
Hi, I wanted to find out if any of you guys know what the status is of #grpc for kotlin multiplatform?
🙄 1
1
👀 1
s

Sebastien Leclerc Lavallee

03/03/2020, 12:48 PM
I did some research and found 4 projects regarding Protobuf / gRPC for Kotlin. I discarded 2 of them because the generated Proto classes are in Java with the gRPC part is in Kotlin/Coroutines. I tried ProtoKt, it does generate Kotlin classes but the runtime/serialization uses Android/JVM classes. So this one is not usable. Last one I checked is streem/pbandk. This one I found it to be pretty interesting. Kotlin classes are generated. The runtime/serialization is JVM and JS only for the moment. But the code is ready to add a native implementation. And that is exacly what I’m targeting. Protobuf is a requirement for our project and I’m starting to work on it to check how I can the native support. This is the issue on the repo. https://github.com/streem/pbandk/issues/19 Feel free if you have some time to help me.
e

Eben Du Toit

03/03/2020, 12:53 PM
Awesome man, I am sitting in the same position where we use grpc in our projects as they are now and its a requirement for us, We are in the beginning process of investigating if mpp can work for us, I saw you just started as well, I will see what me and my team can do to help.
s

Sebastien Leclerc Lavallee

03/03/2020, 1:48 PM
I did a fork of
pbandk
and I will start to check the PR that is reference in the issue I copied and that could resolve the issue inside pure Kotlin. Feel free to contact me (DM) if you can help with anything.
Also, I did try
kotlinx.serialization
. I does work pretty well for serialization but it’s only working for proto2. Since we are using proto3, it’s a no go for us.
e

Eben Du Toit

03/03/2020, 3:11 PM
I will see what I can do I hope I can help and probably learn a bit in the process. My previous contributions, to non-work projects, were mostly in open source games. But this is actually more in line with what I spend most of my days working on and thinking about.
s

Sebastien Leclerc Lavallee

03/03/2020, 3:15 PM
Great! Like I said, when/if you have some time, DM me and we’ll see
3 Views