zt
08/31/2022, 1:49 AM@OptIn(ExperimentalComposeLibrary::class)
implementation(compose.material3)
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
}
}
jw
08/31/2022, 2:00 AMRequiresOptIn
. You can delete that build snippet with no effective change to what's happening (assuming you're on Kotlin 1.7+).zt
08/31/2022, 2:04 AMThis annotation should be used with the compiler argument '-opt-in=kotlin.RequiresOptIn'
on the OptIn annotation for material3jw
08/31/2022, 2:05 AMgildor
08/31/2022, 2:39 PMzt
08/31/2022, 2:55 PM