Hello! I am started digging into kotlin mpp (andro...
# multiplatform
y
Hello! I am started digging into kotlin mpp (android ios) and stuck with following architecture related question: In commonMain module I have function that checks if location is available:
Copy code
expect fun isLocationAvailable() : Boolean
in androidMain i want to make a implementation:
Copy code
actual fun isLocationAvailable() =
    (ContextCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION)
            != PackageManager.PERMISSION_GRANTED)
But i don’t understand what is the correct way of providing context into implementation. If you could point me to git repo with showcase - it would be grate!