Closed wzieba closed 4 years ago
https://stackoverflow.com/questions/63020969/kotlin-mpp-expect-actual-with-different-signatures
General idea:
commonMain
expect class FileProvider {
fun provideFile(): ByteArray
}
androidMain
actual class FileProvider constructor(context: Context) {
actual fun provideFile(): ByteArray {
return ByteArray(2137)
}
}
Questions:
FileProvider
from androidMain?We have to create platform-specific DI module. We can do this also by expected/actual
mechanism.
See #12 and platformSpecificModule
instance for details.
Interesting library to explore: https://github.com/icerockdev/moko-resources