Interface VariantInfo


@Deprecated public interface VariantInfo
Deprecated.
Information about the variant being built.

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

Immutable, no access to tasks

  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the name of the build type.
    com.google.common.collect.ImmutableList<String>
    Deprecated.
    Returns a list of flavor names that make up this variant.
    Deprecated.
    Returns the name of the variant.
    boolean
    Deprecated.
    Returns true if the variant is debuggable
    boolean
    Deprecated.
    Returns true if this is a test variant
  • Method Details

    • getFullVariantName

      @NonNull String getFullVariantName()
      Deprecated.
      Returns the name of the variant. This is composed of the build types and flavors
    • getBuildTypeName

      @NonNull String getBuildTypeName()
      Deprecated.
      Returns the name of the build type.

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

    • getFlavorNames

      @NonNull com.google.common.collect.ImmutableList<String> getFlavorNames()
      Deprecated.
      Returns a list of flavor names that make up this variant.

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

      Returns:
      the ordered list of flavor names. May be empty.
    • isTest

      boolean isTest()
      Deprecated.
      Returns true if this is a test variant
    • isDebuggable

      boolean isDebuggable()
      Deprecated.
      Returns true if the variant is debuggable