Unverified Commit 70282bd6 authored by Shagen Ogandzhanian's avatar Shagen Ogandzhanian Committed by GitHub

Remove most common build warning from skiko

* Argument -Xopt-in is deprecated. Please use -opt-in instead
* 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta
parent dcbac74b
......@@ -83,5 +83,5 @@ tasks.register("runInterop") {
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
......@@ -341,6 +341,6 @@ fun KotlinNativeTarget.configureToLaunchFromXcode() {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.cinterop.ExperimentalForeignApi"
freeCompilerArgs += "-opt-in=kotlinx.cinterop.ExperimentalForeignApi"
}
}
\ No newline at end of file
......@@ -557,5 +557,9 @@ tasks.findByName("publishSkikoWasmRuntimePublicationToComposeRepoRepository")
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
// https://youtrack.jetbrains.com/issue/KT-56583
compilerOptions.freeCompilerArgs.add("-XXLanguage:+ImplicitSignedToUnsignedIntegerConversion")
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlinx.cinterop.ExperimentalForeignApi"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.cinterop.ExperimentalForeignApi"
}
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xexpect-actual-classes"
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment