-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
30 lines (29 loc) · 1.33 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
plugins {
// this is necessary to avoid the plugins to be loaded multiple times
// in each subproject's classloader
alias(libs.plugins.kotlin.multiplatform).apply(false)
alias(libs.plugins.compose.compiler).apply(false)
alias(libs.plugins.compose).apply(false)
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.android.library).apply(false)
alias(libs.plugins.kotlinx.serialization).apply(false)
alias(libs.plugins.dokka).apply(false)
}
allprojects {
afterEvaluate {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {
compilerOptions {
with(optIn) {
add("kotlin.experimental.ExperimentalObjCName")
add("androidx.compose.ui.ExperimentalComposeUiApi")
add("androidx.compose.ui.window.ExperimentalComposeUiApi")
add("androidx.compose.material3.ExperimentalMaterial3Api")
add("androidx.compose.foundation.layout.ExperimentalLayoutApi")
add("org.jetbrains.compose.resources.ExperimentalResourceApi")
add("kotlinx.serialization.ExperimentalSerializationApi")
add("androidx.compose.foundation.ExperimentalFoundationApi")
}
}
}
}
}