Wire: Multi-platform support (Kotlin/Native)

Created on 23 Mar 2019  路  13Comments  路  Source: square/wire

It would be awesome if Wire would support generation of Kotlin classes used in multi-platform project and have a runtime which supports both Android and iOS.

Based on the activity and the changes in okio, it seems that this goal is realistic. Do you have any concrete goal on that direction?

Thanks for the great work!

feature

Most helpful comment

Yep, we're working on it.

All 13 comments

Yep, we're working on it.

I don鈥檛 wanna use Ktor as the network client. I am waiting for Wire to be the default network client for both multi-platform and native android app development.

@SAGARSURI Wire is not a network client, it's a code generation library. Wire's gRPC implementation depends on OkHttp for networking on JVM and we currently don't have a Native networking backend.

Thanks for the clarification @Egorand

Does Wire 3 support Kotlin multiplatform?

@bourquep it does, check out the demo here: https://github.com/Egorand/wire-multiplatform-sample

Thanks for this @Egorand! More specifically, does Wire 3 support gRpc (client) on multiple platforms?

No, gRPC is currently only supported on JVM.

Do you know if there are short-term plans to support it on other platforms?

PRs are welcome!

It is taking time but it's on our roadmap. We'll update issues when we have news.

@swankjesse, @oldergod any progress on this?

How do you generate multi-platform Kotlin code using the compiler CLI?

Was this page helpful?
0 / 5 - 0 ratings