Márton Braun
Márton Braun
Looking at the impl of `eventFlow`: ``` public val Lifecycle.eventFlow: Flow get() = callbackFlow { val observer = LifecycleEventObserver { _, event -> trySend(event) }.also { addObserver(it) } awaitClose {...
Unfortunately there is a good reason. `typeOf` can handle nested types being input as the `T` type parameter (such as `List`), while `::class.java` would erase that to just the `List`...
This is gonna be added to Retrofit, therefore I don't think this library will be updated. See the PR for that here: https://github.com/square/retrofit/pull/2886
Glad you found a solution @janesp! What version of Java were you using that didn't work?
I've moved these version upgrades and more into #17
Just ran into the error mentioned in the original error above, here: https://github.com/Kotlin/KMP-App-Template-Native/pull/30 >java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.utilities.MainKt In my case it seems to be caused by https://youtrack.jetbrains.com/issue/KT-74278/KSP-tasks-dont-trigger-a-K-N-distribution-downloading And a possible workaround is...