Package com.android.build.gradle.tasks
Class PackageAndroidArtifact
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.android.build.gradle.internal.tasks.BaseTask
com.android.build.gradle.internal.tasks.AndroidVariantTask
com.android.build.gradle.internal.tasks.NewIncrementalTask
com.android.build.gradle.tasks.PackageAndroidArtifact
- All Implemented Interfaces:
com.android.build.gradle.internal.tasks.VariantAwareTask,Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
@DisableCachingByDefault
public abstract class PackageAndroidArtifact
extends com.android.build.gradle.internal.tasks.NewIncrementalTask
Abstract task to package an Android artifact.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested classes/interfaces inherited from interface org.gradle.api.Task
org.gradle.api.Task.Namer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected com.android.build.api.artifact.Artifact<org.gradle.api.file.Directory>Fields inherited from class com.android.build.gradle.internal.tasks.AndroidVariantTask
variantNameFields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTaskAction(org.gradle.work.InputChanges changes) abstract org.gradle.api.provider.ListProperty<String>abstract org.gradle.api.provider.SetProperty<String>abstract org.gradle.api.file.ConfigurableFileCollectionFileCollection of all other @Classpath file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.abstract org.gradle.api.file.ConfigurableFileCollectionFileCollection of all other NAME_ONLY file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.abstract org.gradle.api.file.ConfigurableFileCollectionFileCollection of all other RELATIVE file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.abstract org.gradle.api.provider.Property<String>abstract org.gradle.api.file.RegularFilePropertyApp metadata to be packaged in the APK.abstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.provider.Property<String>abstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.file.ConfigurableFileCollectionFileCollection because of the legacy Transform API.abstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.file.ConfigurableFileCollectionFileCollection as comes from another project.abstract org.gradle.api.file.ConfigurableFileCollectionFileCollection because it comes from another project.abstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.file.ConfigurableFileCollectionList of folders and/or jars that contain the merged java resources.booleanabstract org.gradle.api.file.ConfigurableFileCollectionFileCollection because of the legacy Transform API.abstract org.gradle.api.provider.Property<Boolean>abstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.file.RegularFilePropertyabstract org.gradle.api.provider.Property<Integer>abstract org.gradle.api.file.DirectoryPropertyabstract org.gradle.api.provider.Property<String>abstract org.gradle.api.file.DirectoryPropertycom.android.build.gradle.internal.signing.SigningConfigDataProviderabstract org.gradle.api.file.ConfigurableFileCollectionabstract com.android.build.api.artifact.ArtifactTransformationRequestabstract org.gradle.api.provider.ListProperty<com.android.build.api.variant.impl.VariantOutputImpl>voidsetJniDebugBuild(boolean jniDebugBuild) Methods inherited from class com.android.build.gradle.internal.tasks.NewIncrementalTask
taskActionMethods inherited from class com.android.build.gradle.internal.tasks.AndroidVariantTask
getVariantName, setVariantNameMethods inherited from class com.android.build.gradle.internal.tasks.BaseTask
getAnalyticsService, getProjectPath, getWorkerExecutor, recordTaskActionMethods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceMethods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.Task
doNotTrackState, getConvention, notCompatibleWithConfigurationCacheMethods inherited from interface com.android.build.gradle.internal.tasks.VariantAwareTask
getAnalyticsService
-
Field Details
-
manifestType
protected com.android.build.api.artifact.Artifact<org.gradle.api.file.Directory> manifestType -
buildTargetAbi
-
-
Constructor Details
-
PackageAndroidArtifact
public PackageAndroidArtifact()
-
-
Method Details
-
getManifests
@InputFiles @Incremental @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getManifests() -
getResourceFiles
@InputFiles @Incremental @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getResourceFiles() -
getAbiFilters
-
getBaseModuleMetadata
@InputFiles @PathSensitive(NAME_ONLY) @Optional public abstract org.gradle.api.file.ConfigurableFileCollection getBaseModuleMetadata() -
getAppMetadata
@InputFile @Incremental @PathSensitive(NAME_ONLY) @Optional public abstract org.gradle.api.file.RegularFileProperty getAppMetadata()App metadata to be packaged in the APK. -
getMergedArtProfile
@InputFiles @Incremental @PathSensitive(NAME_ONLY) @Optional public abstract org.gradle.api.file.RegularFileProperty getMergedArtProfile() -
getMergedArtProfileMetadata
@InputFiles @Incremental @PathSensitive(NAME_ONLY) @Optional public abstract org.gradle.api.file.RegularFileProperty getMergedArtProfileMetadata() -
getIncrementalFolder
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getIncrementalFolder() -
getManifestTypeName
-
getJavaResourceFiles
@Classpath @Incremental public abstract org.gradle.api.file.ConfigurableFileCollection getJavaResourceFiles()List of folders and/or jars that contain the merged java resources.FileCollection because of the legacy Transform API.
-
getFeatureJavaResourceFiles
@Classpath @Incremental public abstract org.gradle.api.file.ConfigurableFileCollection getFeatureJavaResourceFiles()FileCollection because it comes from another project. -
getJniFolders
@Classpath @Incremental public abstract org.gradle.api.file.ConfigurableFileCollection getJniFolders()FileCollection because of the legacy Transform API. -
getDexFolders
@InputFiles @Incremental @PathSensitive(RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getDexFolders()FileCollection because of the legacy Transform API. -
getFeatureDexFolder
@InputFiles @Incremental @PathSensitive(RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getFeatureDexFolder()FileCollection as comes from another project. -
getAssets
@InputFiles @Incremental @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getAssets() -
getDependencyDataFile
@InputFile @Nullable @Optional @PathSensitive(NAME_ONLY) public abstract org.gradle.api.file.RegularFileProperty getDependencyDataFile() -
getCreatedBy
-
getAaptOptionsNoCompress
@NonNull @Input public abstract org.gradle.api.provider.ListProperty<String> getAaptOptionsNoCompress() -
getJniLibsUseLegacyPackaging
@NonNull @Input public abstract org.gradle.api.provider.Property<Boolean> getJniLibsUseLegacyPackaging() -
getDexUseLegacyPackaging
@NonNull @Input public abstract org.gradle.api.provider.Property<Boolean> getDexUseLegacyPackaging() -
getProjectBaseName
-
getJniDebugBuild
@Input public boolean getJniDebugBuild() -
setJniDebugBuild
public void setJniDebugBuild(boolean jniDebugBuild) -
getDebugBuild
-
getIsDeterministicEntryOrder
-
getAllInputFilesWithRelativePathSensitivity
@InputFiles @PathSensitive(RELATIVE) @Optional public abstract org.gradle.api.file.ConfigurableFileCollection getAllInputFilesWithRelativePathSensitivity()FileCollection of all other RELATIVE file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.The reason for this input is so that any change to an input file will cause the output APK to be built from scratch, which is necessary to create a deterministic APK.
-
getAllInputFilesWithNameOnlyPathSensitivity
@InputFiles @PathSensitive(NAME_ONLY) @Optional public abstract org.gradle.api.file.ConfigurableFileCollection getAllInputFilesWithNameOnlyPathSensitivity()FileCollection of all other NAME_ONLY file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.The reason for this input is so that any change to an input file will cause the output APK to be built from scratch, which is necessary to create a deterministic APK.
-
getAllClasspathInputFiles
@Classpath @Optional public abstract org.gradle.api.file.ConfigurableFileCollection getAllClasspathInputFiles()FileCollection of all other @Classpath file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.The reason for this input is so that any change to an input file will cause the output APK to be built from scratch, which is necessary to create a deterministic APK.
-
getSigningConfigData
public com.android.build.gradle.internal.signing.SigningConfigDataProvider getSigningConfigData() -
getSigningConfigVersions
@InputFiles @PathSensitive(NONE) public abstract org.gradle.api.file.ConfigurableFileCollection getSigningConfigVersions() -
getMinSdkVersion
-
getApplicationId
-
getNativeLibrariesAndDexPackagingModeNames
-
getBuildTargetAbi
-
getOutputDirectory
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputDirectory() -
getIdeModelOutputFile
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getIdeModelOutputFile() -
getVariantOutputs
public abstract org.gradle.api.provider.ListProperty<com.android.build.api.variant.impl.VariantOutputImpl> getVariantOutputs() -
getTransformationRequest
@Input public abstract com.android.build.api.artifact.ArtifactTransformationRequest getTransformationRequest() -
doTaskAction
public void doTaskAction(@NonNull org.gradle.work.InputChanges changes) - Specified by:
doTaskActionin classcom.android.build.gradle.internal.tasks.NewIncrementalTask
-