kotlinOnAndroid property

bool get kotlinOnAndroid

True when the module is implemented in Kotlin on Android. Not the inverse of supportsAndroid: a module that does not target Android is neither.

Implementation

bool get kotlinOnAndroid => RegExp(r'\bandroid\s*:\s*(?:NativeImpl|AndroidNativeImpl)\.kotlin\b').hasMatch(_annotation);