Compare commits

..

No commits in common. "master/k2.1.x" and "master/k2.0.x" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View File

@ -68,16 +68,3 @@ public fun KotlinMultiplatformExtension.setCompatibilityWithKotlin(version: Kotl
this@configureAllCompilersOptionsOnAllTargets.apiVersion.set(version)
this@configureAllCompilersOptionsOnAllTargets.languageVersion.set(version)
}
public fun KotlinTarget.suppressWarningsForAllCompilations(vararg names: String): Unit =
this.configureAllCompilersOptionsOnAllCompilations {
for (warn in names) {
this@configureAllCompilersOptionsOnAllCompilations.freeCompilerArgs.add("-Xsuppress-warning=${warn}")
}
}
public fun KotlinMultiplatformExtension.suppressWarningsForForAllTargets(vararg names: String) {
this.targets.configureEach { t ->
t.suppressWarningsForAllCompilations(*names)
}
}

View File

@ -1,3 +1,3 @@
this=0.3
kotlin=2.1.10
gradle=7.6.3
kotlin=2.0.20
gradle=7.5.1