grpc-kotlin icon indicating copy to clipboard operation
grpc-kotlin copied to clipboard

Multiplatform support for Kotlin/JS and Kotlin/Native

Open joelhandwell opened this issue 7 years ago • 7 comments

GRPC-web became GA. Coroutine is implemented in Kotlin/JS and Kotlin/Native Is there possibility to extract kotlin common code and implement for JVM/JS/Native to enable multi platform GRPC?

joelhandwell avatar Oct 24 '18 21:10 joelhandwell

This is an interesting idea. I have not tried either of those before so I can't say straight away if it would work or not. But I will spend some time experimenting with those combinations to see what works and what doesn't work. I'll push a branch when I got something to show.

Any help with researching this is highly appreciated!

rouzwawi avatar Oct 25 '18 18:10 rouzwawi

We're early in our adoption of gRPC, but are planning on using gRPC-web at some point in the future. If we can do more of that in Kotlin rather than JS, I'd certainly call it a win.

wfhartford avatar Oct 25 '18 18:10 wfhartford

Can anyone get me going with this? I'm pretty new, but when I know how I have to setup the tooling/project, I'd like to add my efforts to this project

RdeWilde avatar Dec 14 '18 22:12 RdeWilde

This project: https://github.com/cretz/pb-and-k generates the JS code.. and native..

Radisovik avatar Dec 14 '18 23:12 Radisovik

I take that back... no native in pb-and-k... there is also kroto plus https://github.com/marcoferrer/kroto-plus which says that "In Progress Multiplatform Protobuf Messages w/ Kotlinx Serialization"

Radisovik avatar Jan 05 '19 21:01 Radisovik

We are looking at using Kotlin MPP to share our business layer code base between our platforms. Since we use gRPC on all our platforms already this would be really nice to have. Any news on this?

MitchDart avatar Mar 02 '20 15:03 MitchDart

I have implemented such a project on my own. It currently supports JVM/Android and JS and allows you to make grpc calls from your common code. iOS is currently not supported, but it will be in the future.

Here is my project: GRPC Kotlin Multiplatform

TimOrtel avatar Jun 20 '22 16:06 TimOrtel