ApplicationVariant

@Incubating interface ApplicationVariant : Variant
com.android.build.api.variant.ApplicationVariant

Properties for the main Variant of an application.

Summary

Inherited functions

Properties

abstract AndroidResources

Variant's aaptOptions, initialized by the corresponding global DSL element.

abstract AndroidTest?

Variant's AndroidTest configuration, or null if android tests are disabled for this variant.

abstract Property<String>

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

abstract DependenciesInfo

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

abstract Dexing

Variant settings related to transforming bytecodes into dex files initialized from the corresponding fields in the DSL.

abstract List<VariantOutput>

Returns the final list of variant outputs.

abstract ApkPackaging

Variant's packagingOptions, initialized by the corresponding global DSL element.

abstract Renderscript?

Variant specific settings for the renderscript compiler.

abstract SigningConfig?

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

Inherited properties

Properties

androidResources

abstract val androidResources: AndroidResources

Variant's aaptOptions, initialized by the corresponding global DSL element.

androidTest

abstract val androidTest: AndroidTest?

Variant's AndroidTest configuration, or null if android tests are disabled for this variant.

applicationId

abstract val applicationId: Property<String>

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

dependenciesInfo

abstract val dependenciesInfo: DependenciesInfo

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

dexing

abstract val dexing: Dexing

Variant settings related to transforming bytecodes into dex files initialized from the corresponding fields in the DSL.

outputs

abstract val outputs: List<VariantOutput>

Returns the final list of variant outputs.

Return
read only list of VariantOutput for this variant.

packaging

abstract val packaging: ApkPackaging

Variant's packagingOptions, initialized by the corresponding global DSL element.

renderscript

abstract val renderscript: Renderscript?

Variant specific settings for the renderscript compiler. This will return null when com.android.build.api.dsl.BuildFeatures.renderScript is false.

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.