https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
p

Pavel Gorgulov

12/23/2021, 2:37 PM
Hi! I have a JVM library. We are now making it multiplatform. One of the features of the library is the different implementations. On the JVM, this is done via SPI (Service Provider Interface). Help, please, do you know a way to do the same for kotlin-js and kotlin-native?
It delegates to service loader on JVM and hacks it up on js
Here's how it's used to register "services" on JS and NATIVE
p

Pavel Gorgulov

12/23/2021, 3:23 PM
thanks a lot
10 Views