https://kotlinlang.org logo
#coroutines
Title
# coroutines
j

Jaroslav

10/24/2018, 2:20 PM
I’m trying to make something similar to what is done in kotlinconf app - https://github.com/JetBrains/kotlinconf-app/blob/master/konfios/konfswift/ui/UI.swift but the problem is, there is no such class
Kotlinx_coroutines_core_nativeCoroutineDispatcher
in my ios framework. I’m using 1.0.0-RC1 coroutines. Maybe it changed the name or something?
v

Vsevolod Tolstopyatov [JB]

10/24/2018, 4:54 PM
cc @e5l
Name is the same, so probably it’s the problem in configuration
e

e5l

10/24/2018, 5:10 PM
Where do you try to implement the dispatcher(swift or kotlin)?
j

Jaroslav

10/25/2018, 4:56 AM
I’ve tried to implement it in swift. The problem was that compiler excluded it from final framework. Thank’s to guys on other channel, I’ve added an empty class that uses dispatcher and now it’s in the framework 👍
Copy code
class DummyClass {
    // Needed for native compiler to include CoroutineDispatcher interface in final framework
    public val dummyDispatcher: CoroutineDispatcher? = null
}
4 Views