LifecycleTasks

Added in 8.4.2

@Incubating
interface LifecycleTasks


Lifecycle tasks created by the AGP plugins.

A lifecycle task usually does not have any processing associated with it but represent a specific location in the build process that can be used to register dependent tasks. These are also Tasks that can be invoked by users which provide a consumable output.

Summary

Public functions

Unit
registerPreBuild(vararg objects: Any)

Registers a task dependency on the PreBuild lifecycle task.

Public functions

registerPreBuild

Added in 8.4.2
fun registerPreBuild(vararg objects: Any): Unit

Registers a task dependency on the PreBuild lifecycle task.

Parameters
vararg objects: Any

must comply to Gradle's task dependency rules defined there