From 00afee83b843edddf754b0dbd9ad30e5a887ae3e Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 19 Nov 2023 10:54:19 -0500 Subject: [PATCH] Suppress build warnings from MPP modules --- i18n/build.gradle.kts | 7 ++++++- source-api/build.gradle.kts | 8 ++++++++ source-local/build.gradle.kts | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/i18n/build.gradle.kts b/i18n/build.gradle.kts index 542afc359..366e19ad3 100644 --- a/i18n/build.gradle.kts +++ b/i18n/build.gradle.kts @@ -38,8 +38,13 @@ multiplatformResources { tasks { val localesConfigTask = registerLocalesConfigTask(project) - preBuild { dependsOn(localesConfigTask) } + + withType { + kotlinOptions.freeCompilerArgs += listOf( + "-Xexpect-actual-classes", + ) + } } diff --git a/source-api/build.gradle.kts b/source-api/build.gradle.kts index 020695b6c..f8c78fb19 100644 --- a/source-api/build.gradle.kts +++ b/source-api/build.gradle.kts @@ -35,3 +35,11 @@ android { consumerProguardFile("consumer-proguard.pro") } } + +tasks { + withType { + kotlinOptions.freeCompilerArgs += listOf( + "-Xexpect-actual-classes", + ) + } +} diff --git a/source-local/build.gradle.kts b/source-local/build.gradle.kts index 71d88804c..98eb4d55a 100644 --- a/source-local/build.gradle.kts +++ b/source-local/build.gradle.kts @@ -41,6 +41,7 @@ android { tasks { withType { kotlinOptions.freeCompilerArgs += listOf( + "-Xexpect-actual-classes", "-opt-in=kotlinx.serialization.ExperimentalSerializationApi", ) }