Skip to content

Commit

Permalink
Run integration tests with Kotlin 2.1.0 (#3865)
Browse files Browse the repository at this point in the history
* Fix an error in the integration test with declaration redeclaration
  • Loading branch information
whyoleg authored Dec 9, 2024
1 parent 2b63314 commit 94eec02
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ package it.mpp0
expect class ExpectedClass {
val platform: String
}

expect class ExpectedClass2 {
val platform: String
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package it.mpp0

actual class ExpectedClass2 {
actual val platform: String = "desktop"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ package it.mpp0
actual class ExpectedClass {
actual val platform: String = "js"
}

actual class ExpectedClass2 {
actual val platform: String = "js"
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ actual class ExpectedClass {
fun jvmOnlyFunction() = Unit

}

actual class ExpectedClass2 {
actual val platform: String = "jvm"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import kotlinx.cinterop.CPointer
/**
* Will print the raw value
*/
fun CPointer<CPointed>.customExtension() {
fun CPointer<CPointed>.customExtension2() {
println(this.rawValue)
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open class AllSupportedTestedVersionsArgumentsProvider : TestedVersionsArguments

object TestedVersions {

val LATEST = BuildVersions("8.7", "2.0.20")
val LATEST = BuildVersions("8.10.2", "2.1.0")

/**
* All supported Gradle/Kotlin versions, including [LATEST]
Expand All @@ -24,10 +24,10 @@ object TestedVersions {
val ALL_SUPPORTED =
BuildVersions.permutations(
gradleVersions = listOf("7.6.2"),
kotlinVersions = listOf("1.9.23", "1.8.20", "1.7.20", "1.6.21", "1.5.31"),
kotlinVersions = listOf("2.0.21", "1.9.23", "1.8.20", "1.7.20", "1.6.21", "1.5.31"),
) + BuildVersions.permutations(
gradleVersions = listOf(*ifExhaustive("7.0", "6.1.1")),
kotlinVersions = listOf(*ifExhaustive( "1.8.0", "1.7.0", "1.6.0", "1.5.0"))
kotlinVersions = listOf(*ifExhaustive("1.8.0", "1.7.0", "1.6.0", "1.5.0"))
) + LATEST

/**
Expand All @@ -41,7 +41,7 @@ object TestedVersions {
val ANDROID =
BuildVersions.permutations(
gradleVersions = listOf("8.4"),
kotlinVersions = listOf("2.0.20"),
kotlinVersions = listOf("2.1.0", "2.0.21"),
androidGradlePluginVersions = listOf("8.3.0")
) + BuildVersions.permutations(
gradleVersions = listOf("7.4.2", *ifExhaustive("7.0")),
Expand All @@ -67,7 +67,8 @@ object TestedVersions {
"1.9.10" to "18.2.0-pre.597",
"1.9.23" to "18.2.0-pre.682",
"2.0.0" to "18.2.0-pre.726",
"2.0.20" to "18.3.1-pre.758",
"2.0.21" to "18.3.1-pre.758",
"2.1.0" to "18.3.1-pre.818",
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ fun interface TestedVersionsSource<T : TestedVersions> {
private val allKgpVersions: List<String> = listOf(
"1.9.25",
"2.0.21",
"2.1.0",
)

/**
Expand Down

0 comments on commit 94eec02

Please sign in to comment.