withVariant

abstract fun withVariant(name: String, action: Action<in VariantMetadata>)(source)

Add a rule for adjusting an existing variant of the component.

Since

4.4

Parameters

name

name of the variant to adjust (e.g. 'compile')

action

the action to modify the variant