com.bselzer.gradle.android.AndroidComponentsExtensionExtensions.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android Show documentation
Show all versions of android Show documentation
Android gradle plugin extensions.
The newest version!
package com.bselzer.gradle.android
import com.android.build.api.variant.AndroidComponentsExtension
import com.android.build.api.variant.ApplicationAndroidComponentsExtension
import com.android.build.api.variant.LibraryAndroidComponentsExtension
import org.gradle.api.Project
val Project.androidComponentsExtension: AndroidComponentsExtension<*, *, *>
get() = extensions.getByType(AndroidComponentsExtension::class.java)
val Project.androidComponentsExtensionOrNull: AndroidComponentsExtension<*, *, *>?
get() = extensions.findByType(AndroidComponentsExtension::class.java)
val Project.applicationAndroidComponentsExtension: ApplicationAndroidComponentsExtension
get() = extensions.getByType(ApplicationAndroidComponentsExtension::class.java)
val Project.applicationAndroidComponentsExtensionOrNull: ApplicationAndroidComponentsExtension?
get() = extensions.findByType(ApplicationAndroidComponentsExtension::class.java)
val Project.libraryAndroidComponentsExtension: LibraryAndroidComponentsExtension
get() = extensions.getByType(LibraryAndroidComponentsExtension::class.java)
val Project.libraryAndroidComponentsExtensionOrNull: LibraryAndroidComponentsExtension?
get() = extensions.findByType(LibraryAndroidComponentsExtension::class.java)
fun AndroidComponentsExtension.finalizeDslReceiver(
configure: CommonExtension.() -> Unit
) where CommonExtension : com.android.build.api.dsl.CommonExtension<*, *, *, *, *, *> {
finalizeDsl(configure)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy