1 import org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompilerOptions 2 configureGlobalKotlinArgumentsAndOptInsnull3internal fun KotlinCommonCompilerOptions.configureGlobalKotlinArgumentsAndOptIns() { 4 freeCompilerArgs.addAll("-progressive") 5 optIn.addAll( 6 "kotlin.experimental.ExperimentalTypeInference", 7 // our own opt-ins that we don't want to bother with in our own code: 8 "kotlinx.coroutines.DelicateCoroutinesApi", 9 "kotlinx.coroutines.ExperimentalCoroutinesApi", 10 "kotlinx.coroutines.ObsoleteCoroutinesApi", 11 "kotlinx.coroutines.InternalCoroutinesApi", 12 "kotlinx.coroutines.FlowPreview" 13 ) 14 } 15