nk
06/13/2019, 1:24 PMcompileKotlin {
kotlinOptions {
freeCompilerArgs += "-Xuse-experimental=org.mylibrary.ExperimentalMarker"
}
}
into the kotlin dsl? I'm trying to disable all the coroutine experimental warnings, I found tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.freeCompilerArgs += ["-Xuse-experimental=kotlin.Experimental"]
}
in kotlin dsl, but it has a bunch of errors in the ide, for example it says "Classifier KotlinCompile does not have a companion object..."thanksforallthefish
06/13/2019, 1:29 PMtasks {
withType(KotlinCompile::class.java).all {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjsr305=strict")
}
}
}
thanksforallthefish
06/13/2019, 1:31 PM1.3
would allow to completely the need as coroutine are officially supportednk
06/13/2019, 1:43 PMnk
06/13/2019, 1:44 PMlistOf
I put "-Xuse-experimental=kotlinx.coroutines.flow.Flow"
, but the IDE still hightlights flow stuff in yellow and asks me to use the annotationStevieB
06/13/2019, 2:14 PMfreeCompilerArgs = listOf(
"-Xuse-experimental=kotlin.Experimental",
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xuse-experimental=kotlin.ExperimentalUnsignedTypes",
"-XXLanguage:+InlineClasses"
Is what I used before, might not be the latest variety though!StevieB
06/13/2019, 2:24 PM"-Xuse-experimental=kotlinx.coroutines.FlowPreview"
and for the channel things
"-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi"
gildor
06/13/2019, 2:54 PMwithType<KotlinCompile> {}
efemoney
06/19/2019, 2:54 PM