mirror of
https://github.com/jlengrand/compose-multiplatform.git
synced 2026-03-10 08:11:20 +00:00
Correct all occurrences of "compatability" (#2623)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
package org.jetbrains.compose
|
||||
|
||||
private const val KOTLIN_COMPATABILITY_LINK =
|
||||
private const val KOTLIN_COMPATIBILITY_LINK =
|
||||
"https://github.com/JetBrains/compose-jb/blob/master/VERSIONING.md#kotlin-compatibility"
|
||||
|
||||
internal object ComposeCompilerCompatability {
|
||||
internal object ComposeCompilerCompatibility {
|
||||
private val kotlinToCompiler = sortedMapOf(
|
||||
"1.7.10" to "1.3.0",
|
||||
"1.7.20" to "1.3.2.2",
|
||||
@@ -13,7 +13,7 @@ internal object ComposeCompilerCompatability {
|
||||
return kotlinToCompiler[kotlinVersion] ?: throw RuntimeException(
|
||||
"This version of Compose Multiplatform doesn't support Kotlin " +
|
||||
"$kotlinVersion. " +
|
||||
"Please see $KOTLIN_COMPATABILITY_LINK " +
|
||||
"Please see $KOTLIN_COMPATIBILITY_LINK " +
|
||||
"to know the latest supported version of Kotlin."
|
||||
)
|
||||
}
|
||||
@@ -22,7 +22,7 @@ class ComposeCompilerKotlinSupportPlugin : KotlinCompilerPluginSupportPlugin {
|
||||
|
||||
composeCompilerArtifactProvider = ComposeCompilerArtifactProvider {
|
||||
composeExt.kotlinCompilerPlugin.orNull ?:
|
||||
ComposeCompilerCompatability.compilerVersionFor(target.getKotlinPluginVersion())
|
||||
ComposeCompilerCompatibility.compilerVersionFor(target.getKotlinPluginVersion())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ class ComposePlugin : Plugin<Project> {
|
||||
|
||||
class CompilerDependencies(private val project: Project) {
|
||||
fun forKotlin(version: String) = "org.jetbrains.compose.compiler:compiler:" +
|
||||
ComposeCompilerCompatability.compilerVersionFor(version)
|
||||
ComposeCompilerCompatibility.compilerVersionFor(version)
|
||||
|
||||
/**
|
||||
* Compose Compiler that is chosen by the version of Kotlin applied to the Gradle project
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.jetbrains.compose.test.utils.TestProjects
|
||||
import org.jetbrains.compose.test.utils.checks
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
class KotlinCompatabilityTest : GradlePluginTestBase() {
|
||||
class KotlinCompatibilityTest : GradlePluginTestBase() {
|
||||
@Test
|
||||
fun testKotlinMpp_1_7_10() = testMpp("1.7.10")
|
||||
|
||||
Reference in New Issue
Block a user