thunderbiscuit / cashu-client

https://thunderbiscuit.github.io/cashu-client/
Apache License 2.0
7 stars 2 forks source link

KMP support #3

Open kirillzh opened 1 week ago

kirillzh commented 1 week ago

@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:

Deps that will need replacement:

We could migrate in small phases:

  1. Replace JVM-only deps with KMP alternatives
  2. Migrate lib to use KMP Gradle plugin, with JVM target to begin with
  3. Add other targets, Android and Native would be a good start
thunderbiscuit commented 1 week 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:

kirillzh commented 1 week ago

Branch with progress so far: https://github.com/kirillzh/cashu-client/pull/3