Package com.android.build.gradle.api
Interface ApkVariantOutput
-
- All Superinterfaces:
BaseVariantOutput,com.android.build.OutputFile,com.android.build.VariantOutput
@Deprecated public interface ApkVariantOutput extends BaseVariantOutput
Deprecated.A variant output for apk-generating variants.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetFilter(com.android.build.VariantOutput.FilterType filterType)Deprecated.Returns a filter value for a filter type if present on this variant or null otherwise.java.lang.StringgetOutputFileName()Deprecated.Returns the output file name for this variant output.PackageAndroidArtifactgetPackageApplication()Deprecated.intgetVersionCodeOverride()Deprecated.Returns the version code override.java.lang.StringgetVersionNameOverride()Deprecated.Returns the version name override.org.gradle.api.TaskgetZipAlign()Deprecated.This returns the packaging task as it now does the zip-align step.voidsetOutputFileName(java.lang.String outputFileName)Deprecated.Sets the output file name for this variant output.voidsetVersionCodeOverride(int versionCodeOverride)Deprecated.Sets the version code override.voidsetVersionNameOverride(java.lang.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, getProcessResourcesProvider
-
-
-
-
Method Detail
-
getPackageApplication
@Nullable @Deprecated PackageAndroidArtifact getPackageApplication()
Deprecated.Returns the packaging tas
-
getZipAlign
@Nullable @Deprecated org.gradle.api.Task 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
void setVersionNameOverride(java.lang.String versionNameOverride)
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
java.lang.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
java.lang.String getFilter(com.android.build.VariantOutput.FilterType filterType)
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
java.lang.String getOutputFileName()
Deprecated.Returns the output file name for this variant output.
-
setOutputFileName
void setOutputFileName(java.lang.String outputFileName)
Deprecated.Sets the output file name for this variant output.- Parameters:
outputFileName- the new file name.
-
-