Hey friends!
We're rapidly increasing the amount of features that expose coroutines/flows to iOS, so our manual wrapping approach (while definitely easier thanks to
@russhwolf’s
abstractions) isn't exactly sustainable for the long-haul.
Curious if anyone has worked with either of these (or any other) options for automating coroutine/flow wrapping for iOS:
•
Koru or
•
KMP-NativeCoroutines
From the looks of it, Koru requires manual opt-in for each class via an annotation, and generates a new class for iOS that wraps the actual Kotlin implementation.
KMP-NativeCoroutines automatically generates wrapped versions of suspend/Flow properties/functions in the same classes. It also provides its own helper pods to map to RxSwift, Combine, and Async/Await.
Has anyone used both and have a strong preference for one vs the other?
Are there any other substantial differences between the two?
Should we just wait until KSP supports multiplatform?