com.bselzer.gradle.internal.android.application.plugin.AndroidApplicationExtensionExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-plugin Show documentation
Show all versions of android-plugin Show documentation
Applies the Android gradle plugin.
The newest version!
package com.bselzer.gradle.internal.android.application.plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.create
private const val EXTENSION_NAME = "androidApplicationExtension"
val Project.androidApplicationExtension: AndroidApplicationExtension
get() = extensions.findByName(EXTENSION_NAME) as? AndroidApplicationExtension ?: extensions.create(EXTENSION_NAME)
fun Project.androidApplicationExtension(configure: AndroidApplicationExtension.() -> Unit) = androidApplicationExtension.apply(configure)