ProductFlavorAttr

Added in 4.2.0

interface ProductFlavorAttr : Named


Type for the attribute holding ProductFlavor information.

There can be more than one attribute associated to each org.gradle.api.artifacts.Configuration object, where each represents a different flavor dimension.

The key should be created with ProductFlavorAttr.of(flavorDimension).

Summary

Public companion functions

Attribute<ProductFlavorAttr>
of(flavorDimension: String)

Returns a product flavor attribute for the given flavor dimension

Inherited functions

From org.gradle.api.Named

Public companion functions

of

Added in 7.1.0
fun of(flavorDimension: String): Attribute<ProductFlavorAttr>

Returns a product flavor attribute for the given flavor dimension

Parameters
flavorDimension: String

The name of the flavor dimension, as specified in the Android Gradle Plugin DSL.