Package com.android.build.gradle.api
Interface ApkVariantOutput
- All Superinterfaces:
BaseVariantOutput,com.android.build.OutputFile,com.android.build.VariantOutput
Deprecated.
A variant output for apk-generating variants.
-
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 -
Method Summary
Modifier and TypeMethodDescriptiongetFilter(com.android.build.VariantOutput.FilterType filterType) Deprecated.Returns a filter value for a filter type if present on this variant or null otherwise.Deprecated.Returns the output file name for this variant output.Deprecated.intDeprecated.Returns the version code override.Deprecated.Returns the version name override.org.gradle.api.TaskDeprecated.This returns the packaging task as it now does the zip-align step.voidsetOutputFileName(String outputFileName) Deprecated.Sets the output file name for this variant output.voidsetVersionCodeOverride(int versionCodeOverride) Deprecated.Sets the version code override.voidsetVersionNameOverride(String versionNameOverride) Deprecated.Sets the version name override.Methods inherited from interface com.android.build.gradle.api.BaseVariantOutput
getAssemble, getBaseName, getDirName, getName, getProcessManifest, getProcessManifestProvider, getProcessResources, getProcessResourcesProviderMethods inherited from interface com.android.build.OutputFile
getOutputFileMethods inherited from interface com.android.build.VariantOutput
getFilters, getFilterTypes, getMainOutputFile, getOutputs, getOutputType, getVersionCode
-
Method Details
-
getPackageApplication
Deprecated.Returns the packaging tas -
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
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
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
Deprecated.Sets the output file name for this variant output.- Parameters:
outputFileName- the new file name.
-
ApkVariant.getPackageApplicationProvider()