Hello guys, I've raised into that problem for a days, but i think I've found one solution, maybe this isn't the better way to do that, but... I will share it. (This is inspired in the Firebase multiplatform repo -> https://github.com/RubyLichtenstein/Kotlin-Multiplatform-Firebase, I'm just summarizing that)
If you want to call some code from a DataSource
or Repository
from your common code, and the libraries you're using use callbacks,
you need to wrap them and there are some problems:
Let me explain it with an example:
expect class RemoteDataSource() {