Package com.android.build.gradle.api
Interface ApkVariant
- All Superinterfaces:
AndroidArtifactVariant,BaseVariant,InstallableVariant,com.android.build.gradle.internal.core.InternalBaseVariant,VersionedVariant
- All Known Subinterfaces:
ApplicationVariant,FeatureVariant,TestVariant
@Deprecated
public interface ApkVariant
extends BaseVariant, InstallableVariant, AndroidArtifactVariant, com.android.build.gradle.internal.core.InternalBaseVariant
Deprecated.
A Build variant and all its public data.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.android.build.gradle.internal.core.InternalBaseVariant
com.android.build.gradle.internal.core.InternalBaseVariant.MergedFlavor -
Method Summary
Modifier and TypeMethodDescriptiongetDex()Deprecated.With the new transform mechanism, there is no direct access to the task anymore.Deprecated.org.gradle.api.tasks.TaskProvider<PackageAndroidArtifact>Deprecated.Returns the packaging taskMethods inherited from interface com.android.build.gradle.api.AndroidArtifactVariant
getCompatibleScreens, getSigningConfig, isSigningReadyMethods inherited from interface com.android.build.gradle.api.BaseVariant
addJavaSourceFoldersToModel, addJavaSourceFoldersToModel, buildConfigField, getAidlCompile, getAidlCompileProvider, getAllRawAndroidResources, getAnnotationProcessorConfiguration, getApplicationId, getApplicationIdTextResource, getAssemble, getAssembleProvider, getBaseName, getBuildType, getCheckManifest, getCheckManifestProvider, getCompileClasspath, getCompileClasspathArtifacts, getCompileConfiguration, getDescription, getDirName, getExternalNativeBuildProviders, getExternalNativeBuildTasks, getFlavorName, getGenerateBuildConfig, getGenerateBuildConfigProvider, getJavaCompile, getJavaCompileOptions, getJavaCompileProvider, getJavaCompiler, getMappingFile, getMappingFileProvider, getMergeAssets, getMergeAssetsProvider, getMergeResources, getMergeResourcesProvider, getName, getObfuscation, getOutputs, getOutputsAreSigned, getPreBuild, getPreBuildProvider, getProcessJavaResources, getProcessJavaResourcesProvider, getProductFlavors, getRenderscriptCompile, getRenderscriptCompileProvider, getRuntimeConfiguration, getSourceFolders, getSourceSets, missingDimensionStrategy, missingDimensionStrategy, missingDimensionStrategy, register, registerExternalAptJavaOutput, registerGeneratedBytecode, registerGeneratedResFolders, registerJavaGeneratingTask, registerJavaGeneratingTask, registerJavaGeneratingTask, registerJavaGeneratingTask, registerPostJavacGeneratedBytecode, registerPreJavacGeneratedBytecode, registerResGeneratingTask, registerResGeneratingTask, resValue, setOutputsAreSignedMethods inherited from interface com.android.build.gradle.api.InstallableVariant
getInstall, getInstallProvider, getUninstall, getUninstallProviderMethods inherited from interface com.android.build.gradle.internal.core.InternalBaseVariant
getMergedFlavorMethods inherited from interface com.android.build.gradle.api.VersionedVariant
getVersionCode, getVersionName
-
Method Details
-
getDex
Deprecated.With the new transform mechanism, there is no direct access to the task anymore.Returns the Dex task. This method will actually throw an exception with a clear message. -
getPackageApplication
Deprecated.Returns the packaging tas -
getPackageApplicationProvider
Deprecated.Returns the packaging taskPrefer this to
getPackageApplication()as it triggers eager configuration of the task.
-