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

Alberto

11/23/2023, 5:12 PM
Hi everyone. Im writing a Kotlin Multiplatform library where Im abstracting all the domain logic to be consumed natively (on the UI layer) by Android, iOS and Javascript. All is good on the Android and iOS side, however in javascript Im having a hard time with the network communication (using Ktor here) - on the JS side im wrapping coroutine calls around the
Promise
response, so far Im only able to get String body responses working. Here is a list of main challenges so far: • Wrapping coroutines calls in JS Promise • Using JS not supported types like
List
• Consuming the Ktor Http body responses Are there any repo or resources (apart from the main ones on the Kotlin site) than I can dig in to find good answers to these challenges?
2 Views