common: set OptIn flag

This commit is contained in:
Harsh Shandilya 2021-08-12 19:58:47 +05:30
parent 7991e769cb
commit e056c78b71
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -1,4 +1,5 @@
import org.jetbrains.compose.compose
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("multiplatform")
@ -42,6 +43,11 @@ kotlin {
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs =
kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
}
android {
buildFeatures { androidResources = true }
compileSdk = 30