Browse Source

Remove older kotlin versions (1.9.0 and 1.9.10) in nativeCacheKind test

The recent compose core libs are built using 1.9.21, and apparently, older k/native versions don't support them.

e: kotlin.NotImplementedError: Generation of stubs for class org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterPublicSymbolImpl is not supported yet
pull/4075/head
Oleksandr.Karpovich 11 months ago
parent
commit
dad2f96ee9
  1. 18
      gradle-plugins/compose/src/test/kotlin/org/jetbrains/compose/test/tests/integration/GradlePluginTest.kt

18
gradle-plugins/compose/src/test/kotlin/org/jetbrains/compose/test/tests/integration/GradlePluginTest.kt

@ -129,20 +129,10 @@ class GradlePluginTest : GradlePluginTestBase() {
} else { } else {
":subproject:linkDebugFrameworkIosArm64" ":subproject:linkDebugFrameworkIosArm64"
} }
with(nativeCacheKindProject(kotlinVersion = TestKotlinVersions.v1_9_0)) { // Note: we used to test with kotlin version 1.9.0 and 1.9.10 too,
gradle(task, "--info").checks { // but since we now use Compose core libs (1.6.0-dev-1340 and newer) built using kotlin 1.9.21,
check.taskSuccessful(task) // the compiler crashed (older k/native doesn't support libs built using newer k/native):
check.logDoesntContain("-Xauto-cache-from=") // e: kotlin.NotImplementedError: Generation of stubs for class org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterPublicSymbolImpl is not supported yet
}
}
testWorkDir.deleteRecursively()
testWorkDir.mkdirs()
with(nativeCacheKindProject(kotlinVersion = TestKotlinVersions.v1_9_10) ) {
gradle(task, "--info").checks {
check.taskSuccessful(task)
check.logDoesntContain("-Xauto-cache-from=")
}
}
val defaultKotlinVersion = kotlinVersionNumbers(TestKotlinVersions.Default) val defaultKotlinVersion = kotlinVersionNumbers(TestKotlinVersions.Default)
if (defaultKotlinVersion >= KotlinVersion(1, 9, 20)) { if (defaultKotlinVersion >= KotlinVersion(1, 9, 20)) {

Loading…
Cancel
Save