Skip to content

Commit

Permalink
Revert "Remove support for Kotlin 2.0.0-RC2."
Browse files Browse the repository at this point in the history
This reverts commit 67f8c5b.
  • Loading branch information
FilipDolnik committed May 10, 2024
1 parent b745d16 commit 58b5df3
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ class MainSkieContext internal constructor(
BitcodeEmbedding.Mode.MARKER -> SwiftCompilerConfiguration.BitcodeEmbeddingMode.Marker
BitcodeEmbedding.Mode.NONE, null -> SwiftCompilerConfiguration.BitcodeEmbeddingMode.None
},
// absoluteSwiftcPath = if (KotlinCompilerVersion.current >= KotlinCompilerVersion.`2_0_0`) {
// configurables.absoluteTargetToolchain + "/bin/swiftc"
// } else {
// configurables.absoluteTargetToolchain + "/usr/bin/swiftc"
// },
absoluteSwiftcPath = configurables.absoluteTargetToolchain + "/usr/bin/swiftc",
absoluteSwiftcPath = if (KotlinCompilerVersion.current >= KotlinCompilerVersion.`2_0_0`) {
configurables.absoluteTargetToolchain + "/bin/swiftc"
} else {
configurables.absoluteTargetToolchain + "/usr/bin/swiftc"
},
absoluteTargetSysRootPath = configurables.absoluteTargetSysRoot,
osVersionMin = configurables.osVersionMin,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ object ConfigureSwiftSpecificLinkerArgsPhase : LinkPhase {
val swiftLibSearchPaths = listOf(
File(
configurables.absoluteTargetToolchain,
// if (KotlinCompilerVersion.current >= KotlinCompilerVersion.`2_0_0`) {
// "lib/swift/${configurables.platformName().lowercase()}"
// } else {
if (KotlinCompilerVersion.current >= KotlinCompilerVersion.`2_0_0`) {
"lib/swift/${configurables.platformName().lowercase()}"
} else {
"usr/lib/swift/${configurables.platformName().lowercase()}"
// },
},
),
File(configurables.absoluteTargetSysRoot, "usr/lib/swift"),
).flatMap { listOf("-L", it.absolutePath) }
Expand Down
2 changes: 1 addition & 1 deletion common-gradle/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kotlin.mpp.import.enableKgpDependencyResolution=true

pluginId=co.touchlab.skie

versionSupport.kotlinTooling=1.8.0(1.8.10), 1.8.20(1.8.21, 1.8.22), 1.9.0(1.9.10), 1.9.20(1.9.21, 1.9.22, 1.9.23, 1.9.24)
versionSupport.kotlinTooling=1.8.0(1.8.10), 1.8.20(1.8.21, 1.8.22), 1.9.0(1.9.10), 1.9.20(1.9.21, 1.9.22, 1.9.23, 1.9.24), 2.0.0[2.0.0-RC1](2.0.0-RC2)
versionSupport.gradleApi=7.3, 8.0, 8.1

touchlab.key=ABCDEFGHIJKLMNOPQRSTUVWXYZ
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object SkieTestRunnerConfiguration {
val configurations = list<BuildConfiguration>("matrix.configurations")
val linkModes = list<LinkMode>("matrix.linkModes")
// TODO Automatically derive from Build-setup
val kotlinVersions = list("matrix.kotlinVersions", ::KotlinVersion) ?: listOf("1.8.0", "1.8.20", "1.9.0", "1.9.20").map(::KotlinVersion)
val kotlinVersions = list("matrix.kotlinVersions", ::KotlinVersion) ?: listOf("1.8.0", "1.8.20", "1.9.0", "1.9.20", "2.0.0-RC2").map(::KotlinVersion)
val gradleVersions = list("matrix.gradleVersions", ::GradleVersion) ?: listOf("8.6").map(::GradleVersion)

fun buildMatrixSource(): SkieTestMatrixSource {
Expand Down

0 comments on commit 58b5df3

Please sign in to comment.