mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-15 01:47:03 +05:30
common: set OptIn flag
This commit is contained in:
parent
7991e769cb
commit
e056c78b71
1 changed files with 6 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import org.jetbrains.compose.compose
|
import org.jetbrains.compose.compose
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("multiplatform")
|
kotlin("multiplatform")
|
||||||
|
@ -42,6 +43,11 @@ kotlin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile> {
|
||||||
|
kotlinOptions.freeCompilerArgs =
|
||||||
|
kotlinOptions.freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
buildFeatures { androidResources = true }
|
buildFeatures { androidResources = true }
|
||||||
compileSdk = 30
|
compileSdk = 30
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue