chrmelchior
01/23/2020, 11:05 AMkotlinOptions
(specifically freeCompilerArgs
) for android
targets? I must be missing something obvious, but android.compilations
is just an empty array (which is also a bit weird and doesn’t match https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#default-project-layout) and using
targets.all {
compilations.all {
kotlinOptions {
freeCompilerArgs = ["..."]
}
}
}
does not work either (which kinda makes sense since the compilations array is empty).project.afterEvaluate {
kotlin.targets.android.compilations.all {
kotlinOptions {
freeCompilerArgs = ["..."]
}
}
}
Oleg Yukhnevich
01/23/2020, 12:36 PMKris Wong
01/23/2020, 3:04 PMtasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += "-Xuse-experimental=kotlinx.coroutines.ObsoleteCoroutinesApi"
}