public enum VariantType extends java.lang.Enum<VariantType>
| Enum Constant and Description |
|---|
ANDROID_TEST |
DEFAULT |
FEATURE |
INSTANTAPP |
LIBRARY |
UNIT_TEST |
| Modifier and Type | Method and Description |
|---|---|
com.google.wireless.android.sdk.stats.GradleBuildVariant.VariantType |
getAnalyticsVariantType()
Returns the corresponding variant type used by the analytics system.
|
java.lang.String |
getArtifactName()
Returns the name used in the builder model for artifacts that correspond to this variant
type.
|
int |
getArtifactType()
Returns the artifact type used in the builder model.
|
boolean |
getCanHaveSplits()
Whether this variant can have split outputs.
|
java.lang.String |
getPrefix()
Returns prefix used for naming source directories.
|
java.lang.String |
getSuffix()
Returns suffix used for naming Gradle tasks.
|
static com.google.common.collect.ImmutableList<VariantType> |
getTestingTypes() |
boolean |
isExportDataBindingClassList()
Whether the artifact type should export the data binding class list.
|
boolean |
isForTesting()
Returns true if the variant is automatically generated for testing purposed, false
otherwise.
|
boolean |
isSingleBuildType()
Whether the artifact type supports only a single build type.
|
static VariantType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VariantType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VariantType DEFAULT
public static final VariantType LIBRARY
public static final VariantType FEATURE
public static final VariantType INSTANTAPP
public static final VariantType ANDROID_TEST
public static final VariantType UNIT_TEST
public static VariantType[] values()
for (VariantType c : VariantType.values()) System.out.println(c);
public static VariantType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static com.google.common.collect.ImmutableList<VariantType> getTestingTypes()
public boolean isForTesting()
@NonNull public java.lang.String getPrefix()
@NonNull public java.lang.String getSuffix()
@NonNull public java.lang.String getArtifactName()
public int getArtifactType()
public boolean isSingleBuildType()
public boolean isExportDataBindingClassList()
public boolean getCanHaveSplits()
public com.google.wireless.android.sdk.stats.GradleBuildVariant.VariantType getAnalyticsVariantType()