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 2, 2024
1 parent 24ca444 commit 8ec0e88
Show file tree
Hide file tree
Showing 6 changed files with 188 additions and 172 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
2 changes: 1 addition & 1 deletion canard/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ kotlin.kodein {
allNative()
js()
wasmJs()
// wasmWasi()
wasmWasi()

jvm {
target.setCompileClasspath()
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 8ec0e88

Please sign in to comment.