Class ApkOutputFile

  • All Implemented Interfaces:
    com.android.build.OutputFile, com.android.build.VariantOutput, java.io.Serializable

    @Deprecated
    public class ApkOutputFile
    extends java.lang.Object
    implements com.android.build.OutputFile, java.io.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:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.android.build.VariantOutput

        com.android.build.VariantOutput.FilterType, com.android.build.VariantOutput.OutputType
    • Field Summary

      • Fields inherited from interface com.android.build.VariantOutput

        ABI, DENSITY, FULL_SPLIT, LANGUAGE, MAIN, NO_FILTER
    • Constructor Summary

      Constructors 
      Constructor Description
      ApkOutputFile​(com.android.build.VariantOutput.OutputType outputType, java.util.Collection<com.android.build.FilterData> filters, java.util.concurrent.Callable<java.io.File> outputFile, int versionCode)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String getFilter​(java.lang.String filterType)
      Deprecated.
      Returns the split identifier (like "hdpi" for a density split) given the split dimension.
      java.lang.String getFilterByType​(com.android.build.VariantOutput.FilterType filterType)
      Deprecated.
       
      java.util.Collection<com.android.build.FilterData> getFilters()
      Deprecated.
       
      java.util.Collection<java.lang.String> getFilterTypes()
      Deprecated.
       
      com.android.build.OutputFile getMainOutputFile()
      Deprecated.
       
      java.io.File getOutputFile()
      Deprecated.
       
      java.util.Collection<? extends com.android.build.OutputFile> getOutputs()
      Deprecated.
       
      java.lang.String getOutputType()
      Deprecated.
       
      com.android.build.VariantOutput.OutputType getType()
      Deprecated.
       
      int getVersionCode()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ApkOutputFile

        public ApkOutputFile​(@NonNull
                             com.android.build.VariantOutput.OutputType outputType,
                             @NonNull
                             java.util.Collection<com.android.build.FilterData> filters,
                             @NonNull
                             java.util.concurrent.Callable<java.io.File> outputFile,
                             int versionCode)
        Deprecated.
    • Method Detail

      • getMainOutputFile

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

        @NonNull
        public java.util.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 java.io.File getOutputFile()
        Deprecated.
        Specified by:
        getOutputFile in interface com.android.build.OutputFile
      • getFilters

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

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

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

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

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

        @Nullable
        public java.lang.String getFilter​(java.lang.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