Class ApkOutputFile

java.lang.Object
com.android.build.gradle.api.ApkOutputFile
All Implemented Interfaces:
com.android.build.OutputFile, com.android.build.VariantOutput, Serializable

@Deprecated public class ApkOutputFile extends Object implements com.android.build.OutputFile, Serializable
Deprecated.
Represents a resource output from a variant configuration.

Depending on split requirements, there can be more than one output from aapt tool and each output file is represented by an instance of this class.

See Also:
  • Constructor Details

    • ApkOutputFile

      public ApkOutputFile(@NonNull com.android.build.VariantOutput.OutputType outputType, @NonNull Collection<com.android.build.FilterData> filters, @NonNull Callable<File> outputFile, int versionCode)
      Deprecated.
  • Method Details

    • getMainOutputFile

      @NonNull public com.android.build.OutputFile getMainOutputFile()
      Deprecated.
      Specified by:
      getMainOutputFile in interface com.android.build.VariantOutput
    • getOutputs

      @NonNull public Collection<? extends com.android.build.OutputFile> getOutputs()
      Deprecated.
      Specified by:
      getOutputs in interface com.android.build.VariantOutput
    • getType

      @NonNull public com.android.build.VariantOutput.OutputType getType()
      Deprecated.
    • getOutputFile

      @NonNull public File getOutputFile()
      Deprecated.
      Specified by:
      getOutputFile in interface com.android.build.OutputFile
    • getFilters

      @NonNull public Collection<com.android.build.FilterData> getFilters()
      Deprecated.
      Specified by:
      getFilters in interface com.android.build.VariantOutput
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getOutputType

      @NonNull public String getOutputType()
      Deprecated.
      Specified by:
      getOutputType in interface com.android.build.VariantOutput
    • getFilterTypes

      @NonNull public Collection<String> getFilterTypes()
      Deprecated.
      Specified by:
      getFilterTypes in interface com.android.build.VariantOutput
    • getFilterByType

      @Nullable public String getFilterByType(com.android.build.VariantOutput.FilterType filterType)
      Deprecated.
    • getFilter

      @Nullable public String getFilter(String filterType)
      Deprecated.
      Returns the split identifier (like "hdpi" for a density split) given the split dimension.
      Parameters:
      filterType - the string representation of SplitType split dimension used to create the APK.
      Returns:
      the split identifier or null if there was not split of that dimension.
    • getVersionCode

      public int getVersionCode()
      Deprecated.
      Specified by:
      getVersionCode in interface com.android.build.VariantOutput