1. What about iOS? How to include them? Any advice...
# multiplatform
r
2. What about iOS? How to include them? Any advice?
s
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
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
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