LifecycleTasks

Added in 8.3.1

@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
registerApkInstallation(vararg objects: Any)

Register a Install task dependencies.

Unit
registerPreBuild(vararg objects: Any)

Register PreBuild lifecycle task dependencies.

Public functions

registerApkInstallation

Added in 8.10.0-alpha01
fun registerApkInstallation(vararg objects: Any): Unit

Register a Install task dependencies.

Parameters
vararg objects: Any

must comply to Gradle's task dependency rules defined there

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