Open kirillzh opened 5 months ago
Hey that's awesome! I'm happy to migrate the JVM-only dependencies to KMP ones for sure, particularly if you're familiar with them and think they'd be a good replacement (I haven't worked with Kermit for example).
A few more thoughts:
Branch with progress so far: https://github.com/kirillzh/cashu-client/pull/3
@thunderbiscuit, the library is great! @jmateoac and I are starting to look at Cashu and would love to use the lib for a hackweek app. Is there any interest in migrating the library to KMP?
Going through dependencies, looks like we are halfway there.
Deps that are already KMP:
org.jetbrains.kotlinx:kotlinx-serialization-json
fr.acinq.bitcoin:bitcoin-kmp
fr.acinq.lightning:lightning-kmp
io.ktor:ktor-client-core
Deps that will need replacement:
com.google.code.gson:gson
->org.jetbrains.kotlinx:kotlinx-serialization-json
org.jetbrains.exposed:exposed-core
,org.xerial:sqlite-jdbc
-> SqlDelight is a good option hereorg.slf4j:slf4j-api
,ch.qos.logback:logback-classic
-> KermitWe could migrate in small phases:
lib
to use KMP Gradle plugin, with JVM target to begin with