Hey everyone,
I am still quite new to both Kotlin and KMM, so this may be really obvious, I apologize.
I'm just starting to translate some code to KMM to share it between both Android and IOS. Currently I'm working in Android Studio on a Windows device.
I created this class:
class SharedDiscover {
companion object {
fun parse(deviceId: Int, data: ByteArray, buffer: ByteBuffer): Boolean {
// Some code...
}
}
}
However, it has an unsolved reference to ByteBuffer. This links back to
import java.nio.ByteBuffer
in the existing project, but in the shared folder I obviously cannot link to this, or at least not in this way. Does anyone have a workaround? Or any insight on how this works?