Skip to content

Commit

Permalink
kotlin 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed May 1, 2024
1 parent 24ca444 commit 326b355
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 174 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ package-lock.json
*.a
*.o
*.so

# Kotlin
.kotlin
8 changes: 5 additions & 3 deletions canard/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.gradle.scan.agent.serialization.scan.serializer.kryo.it

plugins {
kodein.library.mpp
}
Expand All @@ -6,7 +8,7 @@ kotlin.kodein {
allNative()
js()
wasmJs()
// wasmWasi()
wasmWasi()

jvm {
target.setCompileClasspath()
Expand All @@ -19,8 +21,8 @@ kotlin.kodein {
}

allApple {
compilations.main {
cinterops.create("darwin_log")
target {
compilations["main"].cinterops.create("darwin_log")
}
sources.main {
languageSettings {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ private fun wasiGetTime(clockId: Int): Long = withScopedMemoryAllocator { alloca

public actual fun now(): Timestamp = Timestamp(wasiGetTime(0).toULong())

@Suppress("LocalVariableName")
public actual fun Timestamp.toLocalString(): String =
TODO("$msecSinceEpoch")

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[versions]
kotlinx-datetime = "0.4.1"
kotlinx-datetime = "0.6.0-R2"
slf4j = "1.7.36"

[libraries]
Expand Down
Loading

0 comments on commit 326b355

Please sign in to comment.