public interface VariantOutput
| Modifier and Type | Interface and Description |
|---|---|
static class |
VariantOutput.FilterType
Split dimension type
|
static class |
VariantOutput.OutputType
Type of package file, either the main APK or a pure split APK file containing resources for a
particular split dimension.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ABI |
static java.lang.String |
DENSITY
String representations of the FilterType enum which can be used for remote-able interfaces.Ap
|
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
Deprecated.
|
static java.lang.String |
SPLIT |
| Modifier and Type | Method and Description |
|---|---|
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.
|
OutputFile |
getMainOutputFile()
Returns the main file for this artifact which can be either the
com.android.build.OutputFile.OutputType#MAIN or com.android.build.OutputFile.OutputType#FULL_SPLIT |
java.util.Collection<? extends OutputFile> |
getOutputs()
Deprecated.
|
java.lang.String |
getOutputType()
Returns the output type of the referenced APK.
|
int |
getVersionCode()
Returns the version code for this output.
|
@Deprecated static final java.lang.String NO_FILTER
static final java.lang.String MAIN
static final java.lang.String FULL_SPLIT
static final java.lang.String SPLIT
static final java.lang.String DENSITY
static final java.lang.String ABI
static final java.lang.String LANGUAGE
@NonNull java.lang.String getOutputType()
@NonNull java.util.Collection<java.lang.String> getFilterTypes()
VariantOutput.FilterType enum.@NonNull java.util.Collection<FilterData> getFilters()
@NonNull OutputFile getMainOutputFile()
com.android.build.OutputFile.OutputType#MAIN or com.android.build.OutputFile.OutputType#FULL_SPLIT@NonNull @Deprecated java.util.Collection<? extends OutputFile> getOutputs()
int getVersionCode()
This is convenient method that returns the final version code whether it's coming from the override set in the output or from the variant's merged flavor.