DslLifecycle

Added in 7.1.0

interface DslLifecycle<T : Any?>

Known direct subclasses
AndroidComponentsExtension

Generic extension for Android Gradle Plugin related components.

KotlinMultiplatformAndroidComponentsExtension

Components extension for KMP Android Gradle Plugin related components.

LintLifecycleExtension
Known indirect subclasses
ApplicationAndroidComponentsExtension

Extension for the Android Application Gradle Plugin components.

DynamicFeatureAndroidComponentsExtension

Extension for the Android Dynamic Feature Gradle Plugin components.

LibraryAndroidComponentsExtension

Extension for the Android Library Gradle Plugin components.

TestAndroidComponentsExtension

Extension for the Android Test Gradle Plugin components.


Summary

Public functions

Unit
finalizeDsl(callback: Action<T>)

Action based version of finalizeDsl above.

Unit
finalizeDsl(callback: (T) -> Unit)

API to customize the DSL Objects programmatically after they have been evaluated from the build files and before used in the build process next steps like variant or tasks creation.

Public functions

finalizeDsl

Added in 7.1.0
fun finalizeDsl(callback: Action<T>): Unit

Action based version of finalizeDsl above.

finalizeDsl

Added in 7.1.0
fun finalizeDsl(callback: (T) -> Unit): Unit

API to customize the DSL Objects programmatically after they have been evaluated from the build files and before used in the build process next steps like variant or tasks creation.

Example of a build type creation:

androidComponents.finalizeDsl { extension ->
extension.buildTypes.create("extra")
}