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,java.lang.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.NewIncrementalTaskAbstract task to package an Android artifact.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPackageAndroidArtifact.CreationAction<TaskT extends PackageAndroidArtifact>static classPackageAndroidArtifact.IncrementalSplitterRunnablestatic classPackageAndroidArtifact.SplitterParams
-
Field Summary
Fields Modifier and Type Field Description protected com.android.builder.internal.packaging.ApkCreatorTypeapkCreatorTypeprotected java.lang.StringbuildTargetAbiprotected java.lang.StringbuildTargetDensityprotected com.android.build.api.artifact.Artifact<org.gradle.api.file.Directory>manifestTypeprotected java.lang.StringprojectBaseName
-
Constructor Summary
Constructors Constructor Description PackageAndroidArtifact()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddoTaskAction(org.gradle.work.InputChanges changes)abstract org.gradle.api.provider.ListProperty<java.lang.String>getAaptOptionsNoCompress()abstract org.gradle.api.provider.SetProperty<java.lang.String>getAbiFilters()abstract org.gradle.api.file.ConfigurableFileCollectiongetAllClasspathInputFiles()FileCollection of all other @Classpath file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.abstract org.gradle.api.file.ConfigurableFileCollectiongetAllInputFilesWithNameOnlyPathSensitivity()FileCollection of all other NAME_ONLY file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.abstract org.gradle.api.file.ConfigurableFileCollectiongetAllInputFilesWithRelativePathSensitivity()FileCollection of all other RELATIVE file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.com.android.builder.internal.packaging.ApkCreatorTypegetApkCreatorType()abstract org.gradle.api.provider.Property<java.lang.String>getApplicationId()abstract org.gradle.api.file.RegularFilePropertygetAppMetadata()App metadata to be packaged in the APK.abstract org.gradle.api.file.DirectoryPropertygetAssets()abstract org.gradle.api.file.ConfigurableFileCollectiongetBaseModuleMetadata()java.lang.StringgetBuildTargetAbi()java.lang.StringgetBuildTargetDensity()abstract org.gradle.api.provider.Property<java.lang.String>getCreatedBy()abstract org.gradle.api.provider.Property<java.lang.Boolean>getDebugBuild()abstract org.gradle.api.file.RegularFilePropertygetDependencyDataFile()abstract org.gradle.api.file.ConfigurableFileCollectiongetDexFolders()FileCollection because of the legacy Transform API.abstract org.gradle.api.provider.Property<java.lang.Boolean>getDexUseLegacyPackaging()abstract org.gradle.api.file.ConfigurableFileCollectiongetFeatureDexFolder()FileCollection as comes from another project.abstract org.gradle.api.file.ConfigurableFileCollectiongetFeatureJavaResourceFiles()FileCollection because it comes from another project.abstract org.gradle.api.file.RegularFilePropertygetIdeModelOutputFile()abstract org.gradle.api.file.DirectoryPropertygetIncrementalFolder()abstract org.gradle.api.provider.Property<java.lang.Boolean>getIsDeterministicEntryOrder()abstract org.gradle.api.file.ConfigurableFileCollectiongetJavaResourceFiles()List of folders and/or jars that contain the merged java resources.booleangetJniDebugBuild()abstract org.gradle.api.file.ConfigurableFileCollectiongetJniFolders()FileCollection because of the legacy Transform API.abstract org.gradle.api.provider.Property<java.lang.Boolean>getJniLibsUseLegacyPackaging()abstract org.gradle.api.file.DirectoryPropertygetManifests()java.lang.StringgetManifestTypeName()abstract org.gradle.api.file.RegularFilePropertygetMergedArtProfile()abstract org.gradle.api.file.RegularFilePropertygetMergedArtProfileMetadata()abstract org.gradle.api.provider.Property<java.lang.Integer>getMinSdkVersion()java.util.List<java.lang.String>getNativeLibrariesAndDexPackagingModeNames()abstract org.gradle.api.file.DirectoryPropertygetOutputDirectory()java.lang.StringgetProjectBaseName()abstract org.gradle.api.file.DirectoryPropertygetResourceFiles()com.android.build.gradle.internal.signing.SigningConfigDataProvidergetSigningConfigData()abstract org.gradle.api.file.ConfigurableFileCollectiongetSigningConfigVersions()abstract com.android.build.api.artifact.ArtifactTransformationRequestgetTransformationRequest()abstract org.gradle.api.provider.ListProperty<com.android.build.api.variant.impl.VariantOutputImpl>getVariantOutputs()voidsetJniDebugBuild(boolean jniDebugBuild)-
Methods inherited from class com.android.build.gradle.internal.tasks.AndroidVariantTask
getVariantName, setVariantName
-
Methods inherited from class com.android.build.gradle.internal.tasks.BaseTask
getAnalyticsService, getProjectPath, getWorkerExecutor, recordTaskAction
-
Methods 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, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getReasonNotToTrackState, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects
-
-
-
-
Field Detail
-
manifestType
protected com.android.build.api.artifact.Artifact<org.gradle.api.file.Directory> manifestType
-
projectBaseName
protected java.lang.String projectBaseName
-
buildTargetAbi
@Nullable protected java.lang.String buildTargetAbi
-
buildTargetDensity
@Nullable protected java.lang.String buildTargetDensity
-
apkCreatorType
protected com.android.builder.internal.packaging.ApkCreatorType apkCreatorType
-
-
Method Detail
-
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
@Input @NonNull public abstract org.gradle.api.provider.SetProperty<java.lang.String> 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(RELATIVE) @Optional public abstract org.gradle.api.file.RegularFileProperty getMergedArtProfile()
-
getMergedArtProfileMetadata
@InputFiles @Incremental @PathSensitive(RELATIVE) @Optional public abstract org.gradle.api.file.RegularFileProperty getMergedArtProfileMetadata()
-
getIncrementalFolder
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getIncrementalFolder()
-
getManifestTypeName
@Input public java.lang.String 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(RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getDependencyDataFile()
-
getCreatedBy
@Input public abstract org.gradle.api.provider.Property<java.lang.String> getCreatedBy()
-
getAaptOptionsNoCompress
@NonNull @Input public abstract org.gradle.api.provider.ListProperty<java.lang.String> getAaptOptionsNoCompress()
-
getJniLibsUseLegacyPackaging
@NonNull @Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getJniLibsUseLegacyPackaging()
-
getDexUseLegacyPackaging
@NonNull @Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getDexUseLegacyPackaging()
-
getProjectBaseName
@Input public java.lang.String getProjectBaseName()
-
getJniDebugBuild
@Input public boolean getJniDebugBuild()
-
setJniDebugBuild
public void setJniDebugBuild(boolean jniDebugBuild)
-
getDebugBuild
@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> getDebugBuild()
-
getIsDeterministicEntryOrder
@Input public abstract org.gradle.api.provider.Property<java.lang.Boolean> 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
@Input public abstract org.gradle.api.provider.Property<java.lang.Integer> getMinSdkVersion()
-
getApplicationId
@Input public abstract org.gradle.api.provider.Property<java.lang.String> getApplicationId()
-
getNativeLibrariesAndDexPackagingModeNames
@Input public java.util.List<java.lang.String> getNativeLibrariesAndDexPackagingModeNames()
-
getBuildTargetAbi
@Input @Optional @Nullable public java.lang.String getBuildTargetAbi()
-
getBuildTargetDensity
@Input @Optional @Nullable public java.lang.String getBuildTargetDensity()
-
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()
-
getApkCreatorType
@NonNull @Input public com.android.builder.internal.packaging.ApkCreatorType getApkCreatorType()
-
doTaskAction
public void doTaskAction(@NonNull org.gradle.work.InputChanges changes)- Specified by:
doTaskActionin classcom.android.build.gradle.internal.tasks.NewIncrementalTask
-
-