Skip to content

Commit

Permalink
Use Kotlin 2.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Apr 30, 2024
1 parent c743519 commit 509abad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ build/
.gradle/
*.gen.kt
src/nativeInterop
.vscode
.vscode
/.kotlin
10 changes: 7 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ val FLAG_LINK_STATIC: String = "linkStatic"
val GENERATED_FILE_PREFIX: String = "// Generated on build in build.gradle.kts\n"

plugins {
kotlin("multiplatform") version "1.9.23"
kotlin("multiplatform") version "2.0.0-RC1"
kotlin("plugin.serialization") version "1.9.0"
}

Expand Down Expand Up @@ -82,7 +82,7 @@ enum class Platform {

companion object {
val supported: List<Platform> = listOf(
LINUX_X86, LINUX_ARM64, WINDOWS
LINUX_X86//, LINUX_ARM64, WINDOWS
)

fun getTarget(project: Project): Platform {
Expand Down Expand Up @@ -203,7 +203,11 @@ fun KotlinMultiplatformExtension.configureKotlinTarget(platform: Platform) {
if (!definition.platforms.contains(platform)) {
continue
}
create(definition.name)

// TODO Use https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/DefaultCInteropSettings.kt
create(definition.name) {
packageName(definition.name)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@file:Suppress("INVISIBLE_MEMBER")
@file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package spms.client.cli

import cinterop.zmq.ZmqSocket
Expand Down

0 comments on commit 509abad

Please sign in to comment.