spierce7
03/12/2020, 4:41 PMUnresolved reference: coroutines
Unresolved reference: coroutines
Unresolved reference: CoroutineDispatcher
Unresolved reference: Dispatchers
val iosMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-native:${Versions.kotlinxCoroutines}")
implementation(Deps.ktor.client.ios)
implementation(Deps.ktor.feature.serialization.native)
}
}
Kris Wong
03/12/2020, 5:17 PMbasher
03/12/2020, 5:21 PMkotlin.mpp.enableGranularSourceSetsMetadata
enabled?spierce7
03/12/2020, 6:33 PMimport kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
internal actual object Platform {
actual val dispatcher: CoroutineDispatcher
get() = Dispatchers.Main
}
spierce7
03/12/2020, 6:34 PMkotlin.mpp.enableGranularSourceSetsMetadata=true
set. I was just told to by someone the jetbrains team to work around an issuebasher
03/12/2020, 7:35 PMKris Wong
03/12/2020, 7:37 PMkotlinx-coroutines-core-native
has gradle metadataKris Wong
03/12/2020, 7:38 PMcommonMain
instead of iosMain
?basher
03/12/2020, 8:03 PM