com.android.build
Interface OutputFile


public interface OutputFile

An output with an associated set of filters.


Nested Class Summary
static class OutputFile.FilterType
          Split dimension type
static class OutputFile.OutputType
          Type of package file, either the main APK or a pure split APK file containing resources for a particular split dimension.
 
Field Summary
static java.lang.String ABI
           
static java.lang.String DENSITY
          String representations of the FilterType enum which can be used for remote-able interfaces.
static java.lang.String FULL_SPLIT
           
static java.lang.String LANGUAGE
           
static java.lang.String MAIN
          String representation of the OutputType enum which can be used for remote-able interfaces.
static java.lang.String NO_FILTER
          An object representing the lack of filter.
static java.lang.String SPLIT
           
 
Method Summary
 java.util.Collection<FilterData> getFilters()
          Returns all the split information used to create the APK.
 java.util.Collection<java.lang.String> getFilterTypes()
          Returns the split dimensions the referenced APK was created with.
 java.io.File getOutputFile()
          Returns the output file for this artifact's output.
 java.lang.String getOutputType()
          Returns the output type of the referenced APK.
 

Field Detail

NO_FILTER

static final java.lang.String NO_FILTER
An object representing the lack of filter.


MAIN

static final java.lang.String MAIN
String representation of the OutputType enum which can be used for remote-able interfaces.


FULL_SPLIT

static final java.lang.String FULL_SPLIT

SPLIT

static final java.lang.String SPLIT

DENSITY

static final java.lang.String DENSITY
String representations of the FilterType enum which can be used for remote-able interfaces.


ABI

static final java.lang.String ABI

LANGUAGE

static final java.lang.String LANGUAGE
Method Detail

getOutputType

@NonNull
java.lang.String getOutputType()
Returns the output type of the referenced APK.


getFilterTypes

@NonNull
java.util.Collection<java.lang.String> getFilterTypes()
Returns the split dimensions the referenced APK was created with. Each collection's value is the string representation of an element of the OutputFile.FilterType enum.


getFilters

@NonNull
java.util.Collection<FilterData> getFilters()
Returns all the split information used to create the APK.


getOutputFile

@NonNull
java.io.File getOutputFile()
Returns the output file for this artifact's output. Depending on whether the project is an app or a library project, this could be an apk or an aar file. If this OutputFile has filters, this is a split APK. For test artifact for a library project, this would also be an apk.

Returns:
the output file.