william
02/27/2021, 3:35 PM// ignore these warnings
kotlin.target.compilations.all {
allKotlinSourceSets.forEach { sourceSet ->
sourceSet.languageSettings.apply {
useExperimentalAnnotation("kotlinx.coroutines.FlowPreview")
useExperimentalAnnotation("kotlinx.coroutines.ExperimentalCoroutinesApi")
useExperimentalAnnotation("io.ktor.util.KtorExperimentalAPI")
}
}
}
christophsturm
02/27/2021, 3:57 PMBig Chungus
02/27/2021, 4:32 PMwilliam
02/27/2021, 4:41 PMallProjects
block but kotlin.target
is unrecognizedBig Chungus
02/27/2021, 4:46 PMwilliam
02/27/2021, 6:37 PMBig Chungus
02/27/2021, 6:43 PMplugins {
kotlin("multiplatform") version "1.4.31" apply false // apply false is optional. This will register plugin APIs, but will not actually apply it to the rootModule, still allowing you to configure subprojects in it
}
william
02/27/2021, 7:04 PMUnresolved reference: target
in kotlin.target.compilations.all
Big Chungus
02/27/2021, 7:24 PMwilliam
02/27/2021, 7:27 PMtargets
doesn't work. i also don't think it is recognizing kotlin properly. it goes to the package when i click it. when i click the kotlin
in one of my android modules it goes to a gradle kotlin fileBig Chungus
02/27/2021, 7:39 PMwilliam
02/28/2021, 1:41 PMchristophsturm
02/28/2021, 2:01 PMsubprojects {}
and allprojects {}
DSL constructs.”