ApplicationVariantDimension

interface ApplicationVariantDimension : VariantDimension
com.android.build.api.dsl.ApplicationVariantDimension

Shared properties between DSL objects that contribute to an application variant.

That is, ApplicationBuildType and ApplicationProductFlavor and ApplicationDefaultConfig.

Summary

Inherited functions

Properties

abstract String?

Application id suffix.

abstract Boolean?

Returns whether multi-dex is enabled.

abstract ApkSigningConfig?

The associated signing config or null if none are set on the variant dimension.

abstract String?

Version name suffix.

Inherited properties

Properties

applicationIdSuffix

abstract var applicationIdSuffix: String?

Application id suffix. It is appended to the "base" application id when calculating the final application id for a variant.

In case there are product flavor dimensions specified, the final application id suffix will contain the suffix from the default product flavor, followed by the suffix from product flavor of the first dimension, second dimension and so on. All of these will have a dot in between e.g. "defaultSuffix.dimension1Suffix.dimensions2Suffix".

multiDexEnabled

abstract var multiDexEnabled: Boolean?

Returns whether multi-dex is enabled.

This can be null if the flag is not set, in which case the default value is used.

signingConfig

abstract var signingConfig: ApkSigningConfig?

The associated signing config or null if none are set on the variant dimension.

versionNameSuffix

abstract var versionNameSuffix: String?

Version name suffix. It is appended to the "base" version name when calculating the final version name for a variant.

In case there are product flavor dimensions specified, the final version name suffix will contain the suffix from the default product flavor, followed by the suffix from product flavor of the first dimension, second dimension and so on.