yperess
08/21/2017, 5:37 PM1.2-M2 and build tools 26.0.1 everything is working except extension functions across modules. I have one module sdk, then modules wear and app. In sdk I have a simple extension function:
fun Context.hasPermission(permission: String): Boolean =
ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED
But when I use it outside of the sdk module I'm getting Unresolved reference: hasPermission (this wasn't the case before updating to build tools 26 / Android Studio 3.0. Does anyone know if I need to do anything special to export extension functions to other modules?