Is there a way to consume a Kotlin Multiplatform l...
# multiplatform
n
Is there a way to consume a Kotlin Multiplatform library from a Flutter app? Is this relevant? https://flutter.dev/docs/development/platform-integration/platforxm-channels In earlier discussion @Sam mentioned dart:ffi is not very practical for this: https://kotlinlang.slack.com/archives/C3SGXARS6/p1585001422338600 Use case: Say, • There is a
foo-types
and
foo-biz
Kotlin Multiplatform libraries that has the "data types" and "sharable business logic" • This is consumed from Ktor backend services with Kotlin/JVM • This is consumed from React webapp as a Node.js library with Kotlin/JS (IR) • Need a way to consume this from a Flutter app Hoping someone has already done this. 🙂 Thx.
😭 1
k
You can research my kmm application https://gitlab.com/terrakok/gitlab-client It has flutter app too
p
@Konstantin Tskhovrebov Do you have an example of consuming the kmp code in flutter web as well? From what I can see that flutter app is targeting iOS and Android only.