All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bselzer.gradle.internal.android.application.plugin.AndroidApplicationExtensionExtensions.kt Maven / Gradle / Ivy

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)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy