Nick
11/29/2021, 9:29 PMfreeCompilerArgs
working. I’m still getting errors/warnings with what I have tried below. This is in the build.gradle
of a module.
android {
kotlinOptions.freeCompilerArgs += compilerArgs
}
and
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += compilerArgs
}
}
…. more in thread 🧵Nick
11/29/2021, 9:29 PMval compilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlinx.coroutines.FlowPreview",
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
"-Xopt-in=com.google.accompanist.pager.ExperimentalPagerApi",
"-Xopt-in=com.google.accompanist.permissions.ExperimentalPermissionsApi",
"-Xopt-in=coil.annotation.ExperimentalCoilApi",
"-Xopt-in=androidx.compose.ui.unit.ExperimentalUnitApi",
"-Xopt-in=androidx.compose.ui.ExperimentalComposeUiApi",
"-Xopt-in=androidx.compose.animation.ExperimentalAnimationApi",
"-Xopt-in=androidx.compose.material.ExperimentalMaterialApi",
"-Xopt-in=coil.annotation.ExperimentalCoilApi",
"-Xjvm-default=all"
)
Nick
11/29/2021, 9:29 PMephemient
11/29/2021, 10:00 PMJoffrey
11/30/2021, 12:09 AMephemient
11/30/2021, 2:17 AMNick
11/30/2021, 4:31 AMephemient
11/30/2021, 4:40 AMNick
11/30/2021, 4:41 AMJoffrey
11/30/2021, 7:56 AMephemient
11/30/2021, 11:32 AMJoffrey
11/30/2021, 11:35 AM