popalay
10/16/2020, 5:25 AMVal Salamakha
10/16/2020, 6:55 AMandroid{ ... // kotlinOptions {
// jvmTarget = '1.8'
// useIR = true
// } ...}
and add
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
// Treat all Kotlin warnings as errors
allWarningsAsErrors = true
freeCompilerArgs += '-Xopt-in=kotlin.RequiresOptIn'
// Enable experimental coroutines APIs, including Flow
freeCompilerArgs += '-Xopt-in=kotlin.Experimental'
freeCompilerArgs += '-Xallow-jvm-ir-dependencies'
// Set JVM target to 1.8
jvmTarget = "1.8" useIR= true
}
}
and upgrade to compose 1.0.0-alpha05 (Color.Unset to Color.Unspecified, LaunchInComposition to LaunchedTask).