Skip to content

Commit

Permalink
Merge pull request #10 from PatilShreyas/v0.5.0-wasm
Browse files Browse the repository at this point in the history
Add logging impl for wasm target
  • Loading branch information
PatilShreyas authored May 4, 2024
2 parents 368b8b5 + a429289 commit 014fd3b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package dev.shreyaspatil.ai.client.generativeai.common.util

actual object Log {
actual fun w(tag: String, message: String) {
println("[$tag] $message")
}
actual fun e(tag: String, message: String, throwable: Throwable?) {
println("[$tag] $message")
throwable?.printStackTrace()
}
}
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
agp = "8.2.1"
kotest-assertions-core = "5.8.0"
kotlin = "1.9.20"
coroutines = "1.7.3"
kotlinx-serialization-json = "1.6.2"
coroutines = "1.8.0"
kotlinx-serialization-json = "1.6.3"
ktor = "3.0.0-wasm2"
slf4j-api = "2.0.11"
spotless = "6.22.0"
Expand Down

0 comments on commit 014fd3b

Please sign in to comment.