# ApplicationVariantBuilder

# ApplicationVariantBuilder

<br />

```
interface ApplicationVariantBuilder : VariantBuilder, HasAndroidTestBuilder, HasTestFixturesBuilder
```

<br />

*** ** * ** ***

Application specific variant object that contains properties that will determine the variant's build flow.

For example, an application variant may have minification on or off, or have a different minSdkVersion from the other variants.

All these properties must be resolved during configuration time as[org.gradle.api.Task](https://docs.gradle.org/current/javadoc/org/gradle/api/Task.html)representing the variant build flows must be created.

## Summary

|                                                                                                                                                                                 ### Public properties                                                                                                                                                                                 ||
|-----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                            | [debuggable](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ApplicationVariantBuilder#debuggable())                                                                                        |
| [DependenciesInfoBuilder](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/DependenciesInfoBuilder) | [dependenciesInfo](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ApplicationVariantBuilder#dependenciesInfo()) Specify whether to include SDK dependency information in APKs and Bundles. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[com.android.build.api.variant.VariantBuilder](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder) |------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `<T : `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`> `[registerExtension](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#registerExtension(java.lang.Class,kotlin.Any))`(type: `[Class](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Class.html)`<T>, instance: T)` Registers an extension object to the variant object. | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[com.android.build.api.variant.ComponentBuilder](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentBuilder) |------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enable](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentBuilder#enable()) Set to`true`if the variant is active and should be configured, false otherwise. | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enabled](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentBuilder#enabled()) **This property is deprecated.**Will be removed in 8.0                        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| From class[com.android.build.api.variant.ComponentIdentity](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentIdentity) |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`                                                                                                                                                                                                                                                                | [buildType](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentIdentity#buildType()) Build type name, might be replaced with access to locked DSL object once ready.                 | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?`                                                                                                                                                                                                                                                                | [flavorName](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentIdentity#flavorName()) The multi-flavor name of the variant.                                                         | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                   | [name](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentIdentity#name()) Component's name.                                                                                         | | [List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>>` | [productFlavors](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/ComponentIdentity#productFlavors()) List of flavor names, might be replaced with access to locked DSL objects once ready. | |
| From class[com.android.build.api.variant.HasAndroidTestBuilder](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/HasAndroidTestBuilder) |------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [androidTestEnabled](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/HasAndroidTestBuilder#androidTestEnabled()) **This property is deprecated.**replaced with enableAndroidTest    | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enableAndroidTest](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/HasAndroidTestBuilder#enableAndroidTest()) Set to`true`if the variant's has any android tests, false otherwise. |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| From class[com.android.build.api.variant.HasTestFixturesBuilder](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/HasTestFixturesBuilder) |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [enableTestFixtures](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/HasTestFixturesBuilder#enableTestFixtures()) Set to`true`if the variant's has test fixtures,`false`otherwise. |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| From class[com.android.build.api.variant.VariantBuilder](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder) |-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)  | [enableUnitTest](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#enableUnitTest()) Set to`true`if the variant's has any unit tests, false otherwise.                    | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [maxSdk](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#maxSdk()) Gets the maximum supported SDK Version for this variant.                                             | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [minSdk](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#minSdk()) Gets or sets the minimum supported SDK Version for this variant.                                     | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [minSdkPreview](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#minSdkPreview()) Gets or sets the minimum supported SDK Version for this variant as a Preview codename. | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)          | [renderscriptTargetApi](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#renderscriptTargetApi()) Specifies the bytecode version to be generated.                        | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`?`       | [targetSdk](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#targetSdk()) Gets or sets the target SDK Version for this variant as a Preview codename.                    | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`?` | [targetSdkPreview](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#targetSdkPreview()) Gets or sets the target SDK Version for this variant as a Preview codename.      | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)  | [unitTestEnabled](https://developer.android.com/reference/tools/gradle-api/7.3/com/android/build/api/variant/VariantBuilder#unitTestEnabled()) **This property is deprecated.**Use enableUnitTest                                 |                                      |

## Public properties

### debuggable

```
val debuggable: Boolean
```  

### dependenciesInfo

```
val dependenciesInfo: DependenciesInfoBuilder
```

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