Suppress build warnings from MPP modules

(cherry picked from commit 00afee83b843edddf754b0dbd9ad30e5a887ae3e)
This commit is contained in:
arkon
2023-11-19 10:54:19 -05:00
committed by Jobobby04
parent 16d433973c
commit 77a8702db6
4 changed files with 21 additions and 1 deletions
+6
View File
@@ -37,3 +37,9 @@ multiplatformResources {
multiplatformResourcesClassName = "SYMR"
multiplatformResourcesPackage = "tachiyomi.i18n.sy"
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xexpect-actual-classes",
)
}
+6 -1
View File
@@ -39,8 +39,13 @@ multiplatformResources {
tasks {
val localesConfigTask = registerLocalesConfigTask(project)
preBuild {
dependsOn(localesConfigTask)
}
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xexpect-actual-classes",
)
}
}
+8
View File
@@ -41,3 +41,11 @@ android {
consumerProguardFile("consumer-proguard.pro")
}
}
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xexpect-actual-classes",
)
}
}
+1
View File
@@ -47,6 +47,7 @@ android {
tasks {
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.freeCompilerArgs += listOf(
"-Xexpect-actual-classes",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
)
}