-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
34 lines (32 loc) · 1.41 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
31
32
33
34
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
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.gmazzo).apply(false)
alias(libs.plugins.sqldelight).apply(false)
alias(libs.plugins.dokka).apply(false)
// alias(libs.plugins.realm).apply(false)
id("com.google.gms.google-services").version("4.4.0").apply(false)
}
allprojects {
afterEvaluate {
tasks.withType<KotlinCompilationTask<*>>().configureEach {
compilerOptions {
with(optIn) {
add("kotlin.experimental.ExperimentalObjCName")
add("androidx.compose.ui.ExperimentalComposeUiApi")
add("androidx.compose.material3.ExperimentalMaterial3Api")
add("androidx.compose.foundation.layout.ExperimentalLayoutApi")
add("org.jetbrains.compose.resources.ExperimentalResourceApi")
add("kotlinx.serialization.ExperimentalSerializationApi")
}
}
}
}
}