ApplicationVariant
interface ApplicationVariant : GeneratesApk, Variant, HasAndroidTest, HasUnitTest, HasTestFixtures, CanMinifyCode, CanMinifyAndroidResources
Properties for the main Variant of an application.
Summary
Public properties |
|
---|---|
Property<String> |
Variant's application ID as present in the final manifest file of the APK. |
BundleConfig |
Variant's information related to the bundle creation configuration. |
DependenciesInfo |
Specify whether to include SDK dependency information in APKs and Bundles. |
List<VariantOutput> |
Returns the final list of variant outputs. |
SigningConfig |
Variant's signingConfig, initialized by the corresponding DSL element. |
Inherited functions |
||||
---|---|---|---|---|
|
||||
|
||||
|
Inherited properties |
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
Public properties
applicationId
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
val bundleConfig: BundleConfig
Variant's information related to the bundle creation configuration.
Returns | |
---|---|
BundleConfig |
Variant's |
dependenciesInfo
val dependenciesInfo: DependenciesInfo
Specify whether to include SDK dependency information in APKs and Bundles.
outputs
val outputs: List<VariantOutput>
Returns the final list of variant outputs.
Returns | |
---|---|
List<VariantOutput> |
read only list of |
signingConfig
val signingConfig: SigningConfig
Variant's signingConfig, initialized by the corresponding DSL element.
Returns | |
---|---|
SigningConfig |
Variant's config or null if the variant is not configured for signing. |