Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class AndroidKotlinConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("org.jetbrains.kotlin.android")
}
extensions.findByType(ApplicationExtension::class.java)?.apply {
configureKotlin(this)
}
extensions.findByType(LibraryExtension::class.java)?.apply {
configureKotlin(this)
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment