# VariantInfo

# VariantInfo

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/VariantInfo.java+class:com.android.build.api.variant.VariantInfo)  
Added in 4.2.0  
Deprecated in 7.0.0  

<br />

```
interface VariantInfo
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   

Information about the variant being built.

Only the Android Gradle Plugin should create instances of this interface.

Immutable, no access to tasks

## Summary

|                                                                                      ### Public functions                                                                                      |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                            | [getBuildTypeName](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/variant/VariantInfo#getBuildTypeName())`()` Returns the name of the build type.                   |
| [ImmutableList](https://guava.dev/releases/18.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!` | [getFlavorNames](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/variant/VariantInfo#getFlavorNames())`()` Returns a list of flavor names that make up this variant. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!`                                                                                                            | [getFullVariantName](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/variant/VariantInfo#getFullVariantName())`()` Returns the name of the variant.                  |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                             | [isDebuggable](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/variant/VariantInfo#isDebuggable())`()` Returns true if the variant is debuggable                     |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)                                                                                                             | [isTest](https://developer.android.com/reference/tools/gradle-api/8.11/com/android/build/api/variant/VariantInfo#isTest())`()` Returns true if this is a test variant                                    |

## Public functions

### getBuildTypeName

Added in 4.2.0  
Deprecated in 7.0.0  

```
fun getBuildTypeName(): String!
```

Returns the name of the build type.

By convention, build-type settings should override flavor settings.  

### getFlavorNames

Added in 4.2.0  
Deprecated in 7.0.0  

```
fun getFlavorNames(): ImmutableList<String!>!
```

Returns a list of flavor names that make up this variant.

By convention settings from earlier flavors should override settings from later flavors.  

|                                                                                            Returns                                                                                             |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------|
| [ImmutableList](https://guava.dev/releases/18.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!` | the ordered list of flavor names. May be empty. |

### getFullVariantName

Added in 4.2.0  
Deprecated in 7.0.0  

```
fun getFullVariantName(): String!
```

Returns the name of the variant. This is composed of the build types and flavors  

### isDebuggable

Added in 4.2.0  
Deprecated in 7.0.0  

```
fun isDebuggable(): Boolean
```

Returns true if the variant is debuggable  

### isTest

Added in 4.2.0  
Deprecated in 7.0.0  

```
fun isTest(): Boolean
```

Returns true if this is a test variant