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

Rak

12/09/2019, 1:03 PM
2. What about iOS? How to include them? Any advice?
s

sindrenm

12/09/2019, 1:10 PM
I'm curious about this as well. There were a couple of talks on the conference about this. If you haven't already, have a look at https://kotlinconf.com/talks/5-dec/127172 and https://kotlinconf.com/talks/5-dec/116027. They both had some interesting thoughts around this.
k

kpgalligan

12/09/2019, 2:28 PM
See link from the previous thread. You need to understand the state/concurrency model. Reaktive works now. Flow/coroutines restricted to a single thread until multi-threaded PR gets finished and released
c

clhols

12/09/2019, 9:51 PM
Also, have a look at the kotlinconf-app source code. It uses a custom CFlow class that collects from Flow and uses a callback to pass the data and a Closable as return value. Look for the "liveSessions.watch" call here: https://github.com/JetBrains/kotlinconf-app/blob/d56c3383d52dfdc32ba449d8daf9b9f633dd1d08/iosApp/iosApp/Controllers/HomeController.swift And CFlow here: https://github.com/JetBrains/kotlinconf-app/blob/master/common/src/mobileMain/kotlin/org/jetbrains/kotlinconf/FlowUtils.kt
3 Views