Interface ApkVariantOutput

All Superinterfaces:
BaseVariantOutput, com.android.build.OutputFile, com.android.build.VariantOutput

@Deprecated public interface ApkVariantOutput extends BaseVariantOutput
Deprecated.
A variant output for apk-generating variants.
  • Method Details

    • getPackageApplication

      @Nullable @Deprecated PackageAndroidArtifact getPackageApplication()
      Returns the packaging tas
    • getZipAlign

      @Nullable @Deprecated org.gradle.api.Task getZipAlign()
      Deprecated.
      This returns the packaging task as it now does the zip-align step.
      Returns the Zip align task.
    • setVersionCodeOverride

      void setVersionCodeOverride(int versionCodeOverride)
      Deprecated.
      Sets the version code override. This version code will only affect this output. If the value is -1, then the output will use the version code defined in the main merged flavors for this variant.
      Parameters:
      versionCodeOverride - the version code override.
    • getVersionCodeOverride

      int getVersionCodeOverride()
      Deprecated.
      Returns the version code override. If the value is -1, then the output will use the version code defined in the main merged flavors for this variant.
      Returns:
      the version code override.
    • setVersionNameOverride

      void setVersionNameOverride(String versionNameOverride)
      Deprecated.
      Sets the version name override. This version name will only affect this output. If the value is null, then the output will use the version name defined in the main merged flavors for this variant.
      Parameters:
      versionNameOverride - the version name override.
    • getVersionNameOverride

      String getVersionNameOverride()
      Deprecated.
      Returns the version name override. If the value is null, then the output will use the version name defined in the main merged flavors for this variant.
      Returns:
      the version name override.
    • getFilter

      String getFilter(com.android.build.VariantOutput.FilterType filterType)
      Deprecated.
      Returns a filter value for a filter type if present on this variant or null otherwise.
      Parameters:
      filterType - the type of the filter requested.
      Returns:
      the filter value.
    • getOutputFileName

      String getOutputFileName()
      Deprecated.
      Returns the output file name for this variant output.
    • setOutputFileName

      void setOutputFileName(String outputFileName)
      Deprecated.
      Sets the output file name for this variant output.
      Parameters:
      outputFileName - the new file name.