A variant output for apk-generating variants.
Type | Name and description |
---|---|
ZipAlign |
createZipAlignTask(java.lang.String taskName, java.io.File inputFile, java.io.File outputFile) |
PackageApplication |
getPackageApplication() Returns the packaging task |
int |
getVersionCode() Returns the version code for this output. |
int |
getVersionCodeOverride() Returns the version code override. |
ZipAlign |
getZipAlign() Returns the Zip align task. |
void |
setVersionCodeOverride(int versionCodeOverride) Sets the version code override. |
Methods inherited from class | Name |
---|---|
interface BaseVariantOutput |
getAbiFilter, getAssemble, getBaseName, getDensityFilter, getDirName, getName, getOutputFile, getProcessManifest, getProcessResources, setOutputFile |
Returns the packaging task
Returns the version code for this output. 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.
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 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.