com.bselzer.gradle.internal.android.library.plugin.AndroidLibraryExtensionExtensions.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.library.plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.create
private const val EXTENSION_NAME = "androidLibraryExtension"
val Project.androidLibraryExtension: AndroidLibraryExtension
get() = extensions.findByName(EXTENSION_NAME) as? AndroidLibraryExtension ?: extensions.create(EXTENSION_NAME)
fun Project.androidLibraryExtension(configure: AndroidLibraryExtension.() -> Unit) = androidLibraryExtension.apply(configure)