LifecycleTasks

Added in 8.3.1

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)

Register PreBuild lifecycle task dependencies.

Unit
registerPreInstallation(vararg objects: Any)

Register a Install task dependencies.

Public functions

registerPreBuild

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

Register PreBuild lifecycle task dependencies.

Parameters
vararg objects: Any

must comply to Gradle's task dependency rules defined there

registerPreInstallation

Added in 8.10.0-alpha08
fun registerPreInstallation(vararg objects: Any): Unit

Register a Install task dependencies.

Parameters
vararg objects: Any

must comply to Gradle's task dependency rules defined there