ApplicationVariant

interface ApplicationVariant : GeneratesApk, Variant, HasAndroidTest, HasTestFixtures
com.android.build.api.variant.ApplicationVariant

Properties for the main Variant of an application.

Summary

Inherited functions

Properties

abstract Property<String>

Variant's application ID as present in the final manifest file of the APK.

abstract BundleConfig

Variant's information related to the bundle creation configuration.

abstract DependenciesInfo

Specify whether to include SDK dependency information in APKs and Bundles.

abstract List<VariantOutput>

Returns the final list of variant outputs.

abstract SigningConfig

Variant's signingConfig, initialized by the corresponding DSL element.

Inherited properties

Properties

applicationId

abstract val applicationId: Property<String>

Variant's application ID as present in the final manifest file of the APK.

Setting this value will override anything set via the DSL with com.android.build.api.dsl.ApplicationBaseFlavor.applicationId, and com.android.build.api.dsl.ApplicationVariantDimension.applicationIdSuffix

bundleConfig

abstract val bundleConfig: BundleConfig

Variant's information related to the bundle creation configuration.

Return
Variant's BundleConfig.

dependenciesInfo

abstract val dependenciesInfo: DependenciesInfo

Specify whether to include SDK dependency information in APKs and Bundles.

outputs

abstract val outputs: List<VariantOutput>

Returns the final list of variant outputs.

Return
read only list of VariantOutput for this variant.

signingConfig

abstract val signingConfig: SigningConfig

Variant's signingConfig, initialized by the corresponding DSL element.

Return
Variant's config or null if the variant is not configured for signing.