# ApplicationVariant

# ApplicationVariant

<br />

```
interface ApplicationVariant : GeneratesApk, ComponentIdentity, Component, HasAndroidResources, Variant, HasAndroidTest, HasTestFixtures
```

<br />

*** ** * ** ***

Properties for the main Variant of an application.

## Summary

|                                                                                                                                                                                                                  ### Public properties                                                                                                                                                                                                                   ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>`                                         | [applicationId](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant#applicationId()) Variant's application ID as present in the final manifest file of the APK.       |
| [BundleConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/BundleConfig)                                                                                                 | [bundleConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant#bundleConfig()) Variant's information related to the bundle creation configuration.                |
| [DependenciesInfo](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/DependenciesInfo)                                                                                         | [dependenciesInfo](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant#dependenciesInfo()) Specify whether to include SDK dependency information in APKs and Bundles. |
| [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[VariantOutput](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput)`>` | [outputs](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant#outputs()) Returns the final list of variant outputs.                                                   |
| [SigningConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/SigningConfig)                                                                                               | [signingConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ApplicationVariant#signingConfig()) Variant's signingConfig, initialized by the corresponding DSL element.           |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[Component](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/Component) |------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | ~~[setAsmFramesComputationMode](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/Component#setAsmFramesComputationMode(com.android.build.api.instrumentation.FramesComputationMode))~~`(mode: `[FramesComputationMode](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/instrumentation/FramesComputationMode)`?)` **This function is deprecated.**Use the instrumentation block.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `<ParamT : `[InstrumentationParameters](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/instrumentation/InstrumentationParameters)`?> `~~[transformClassesWith](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/Component#transformClassesWith(java.lang.Class,com.android.build.api.instrumentation.InstrumentationScope,kotlin.Function1))~~`(` ` classVisitorFactoryImplClass: `[Class](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html)`<`[AsmClassVisitorFactory](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/instrumentation/AsmClassVisitorFactory)`<ParamT?>?>?,` ` scope: `[InstrumentationScope](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/instrumentation/InstrumentationScope)`?,` ` instrumentationParamsConfig: ((ParamT) `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)?` `)` **This function is deprecated.**Use the instrumentation block. | |
| From class[HasAndroidResources](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/HasAndroidResources) |-------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ResValue.Key) | [makeResValueKey](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/HasAndroidResources#makeResValueKey(kotlin.String,kotlin.String))`(type: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?, name: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?)` Make a[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/ResValue.Key)to interact with[resValues](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/HasAndroidResources#resValues())'s[MapProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/MapProperty.html) |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| From class[Variant](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/Variant) |------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `T?` | `<T : `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`?> `[getExtension](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/Variant#getExtension(java.lang.Class))`(type: `[Class](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html)`<T?>?)` Returns an extension object registered via the[VariantBuilder.registerExtension](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantBuilder#registerExtension(java.lang.Class,kotlin.Any))API or null if none were registered under the passed[type](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/Variant#getExtension(java.lang.Class)). |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |

## 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](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ApplicationBaseFlavor#applicationId()), and[com.android.build.api.dsl.ApplicationVariantDimension.applicationIdSuffix](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/ApplicationVariantDimension#applicationIdSuffix())  

### bundleConfig

```
val bundleConfig: BundleConfig
```

Variant's information related to the bundle creation configuration.  

|                                                                                                                          Returns                                                                                                                           ||
|-------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| [BundleConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/BundleConfig) | Variant's[BundleConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/BundleConfig). |

### 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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[VariantOutput](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput)`>` | read only list of[VariantOutput](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/VariantOutput)for this variant. |

### signingConfig

```
val signingConfig: SigningConfig
```

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

|                                                                                              Returns                                                                                              ||
|---------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|
| [SigningConfig](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/variant/SigningConfig) | Variant's config or null if the variant is not configured for signing. |