mirror of
https://github.com/mihonapp/mihon.git
synced 2024-12-24 18:08:24 +01:00
Suppress build warnings from MPP modules
This commit is contained in:
parent
0d1bced122
commit
00afee83b8
@ -38,8 +38,13 @@ multiplatformResources {
|
|||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
val localesConfigTask = registerLocalesConfigTask(project)
|
val localesConfigTask = registerLocalesConfigTask(project)
|
||||||
|
|
||||||
preBuild {
|
preBuild {
|
||||||
dependsOn(localesConfigTask)
|
dependsOn(localesConfigTask)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xexpect-actual-classes",
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,3 +35,11 @@ android {
|
|||||||
consumerProguardFile("consumer-proguard.pro")
|
consumerProguardFile("consumer-proguard.pro")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xexpect-actual-classes",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -41,6 +41,7 @@ android {
|
|||||||
tasks {
|
tasks {
|
||||||
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
kotlinOptions.freeCompilerArgs += listOf(
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-Xexpect-actual-classes",
|
||||||
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user