A variant output for apk-generating variants.
Type | Name and description |
---|---|
ZipAlign |
createZipAlignTask(String taskName, File inputFile, File outputFile) |
String |
getFilter(com.android.build.OutputFile$FilterType filterType) Returns a filter value for a filter type if present on this variant or null otherwise. |
PackageApplication |
getPackageApplication() Returns the packaging task |
int |
getVersionCodeOverride() Returns the version code override. |
String |
getVersionNameOverride() Returns the version name override. |
ZipAlign |
getZipAlign() Returns the Zip align task. |
void |
setVersionCodeOverride(int versionCodeOverride) Sets the version code override. |
void |
setVersionNameOverride(String versionNameOverride) Sets the version name override. |
Methods inherited from class | Name |
---|---|
interface BaseVariantOutput |
getAssemble, getBaseName, getDirName, getName, getOutputFile, getProcessManifest, getProcessResources, setOutputFile |
interface com.android.build.VariantOutput |
com.android.build.VariantOutput#getOutputs(), com.android.build.VariantOutput#getVersionCode(), com.android.build.VariantOutput#getMainOutputFile(), com.android.build.VariantOutput#getSplitFolder() |
Returns a filter value for a filter type if present on this variant or null otherwise.
filterType
- the type of the filter requested.Returns the packaging task
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 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 Zip align task.
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.
versionCodeOverride
- the version code override.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.
versionNameOverride
- the version name override.