# VariantInfo

# VariantInfo

<br />

```
public 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 methods                                                                                                  |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `abstract `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)                                                                                                             | [getBuildTypeName](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/VariantInfo#getBuildTypeName())`()` Returns the name of the build type.                   |
| `abstract `[ImmutableList](https://guava.dev/releases/18.0/api/docs/com/google/common/collect/ImmutableList.html)`<`[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)`>` | [getFlavorNames](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/VariantInfo#getFlavorNames())`()` Returns a list of flavor names that make up this variant. |
| `abstract `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)                                                                                                             | [getFullVariantName](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/VariantInfo#getFullVariantName())`()` Returns the name of the variant.                  |
| `abstract boolean`                                                                                                                                                                                                  | [isDebuggable](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/VariantInfo#isDebuggable())`()` Returns true if the variant is debuggable                     |
| `abstract boolean`                                                                                                                                                                                                  | [isTest](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/VariantInfo#isTest())`()` Returns true if this is a test variant                                    |

## Public methods

### getBuildTypeName

```
abstract String getBuildTypeName()
```

Returns the name of the build type.

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

### getFlavorNames

```
abstract ImmutableList<String> getFlavorNames()
```

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://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)`>` | the ordered list of flavor names. May be empty. |

### getFullVariantName

```
abstract String getFullVariantName()
```

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

### isDebuggable

```
abstract boolean isDebuggable()
```

Returns true if the variant is debuggable  

### isTest

```
abstract boolean isTest()
```

Returns true if this is a test variant