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", ) }