Interface VersionedVariant

All Known Subinterfaces:
AndroidArtifactVariant, ApkVariant, ApplicationVariant, FeatureVariant, TestVariant

@Deprecated public interface VersionedVariant
Deprecated.
A Build variant that supports versioning.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Deprecated.
    Returns the variant versionCode.
    Deprecated.
    Return the variant versionName or null if none found.
  • Method Details

    • getVersionCode

      int getVersionCode()
      Deprecated.
      Returns the variant versionCode. If the value is not found, then 1 is returned as this is the implicit value that the platform would use. If not output define its own variant override then this is used for all outputs.
    • getVersionName

      @Nullable String getVersionName()
      Deprecated.
      Return the variant versionName or null if none found.