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 Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from interface org.gradle.api.Task

    org.gradle.api.Task.Namer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected com.android.build.api.artifact.Artifact<org.gradle.api.file.Directory>
     

    Fields inherited from class com.android.build.gradle.internal.tasks.AndroidVariantTask

    variantName

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doTaskAction(org.gradle.work.InputChanges changes)
     
    abstract org.gradle.api.provider.ListProperty<String>
     
    abstract org.gradle.api.provider.SetProperty<String>
     
    abstract org.gradle.api.file.ConfigurableFileCollection
    FileCollection of all other @Classpath file inputs if getIsDeterministic() is true, or an empty FileCollection if getIsDeterministic() is false.
    abstract org.gradle.api.file.ConfigurableFileCollection
    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.ConfigurableFileCollection
    FileCollection 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.RegularFileProperty
    App metadata to be packaged in the APK.
    abstract org.gradle.api.file.DirectoryProperty
     
    abstract org.gradle.api.file.ConfigurableFileCollection
     
     
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.provider.Property<Boolean>
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.file.ConfigurableFileCollection
    FileCollection because of the legacy Transform API.
    abstract org.gradle.api.provider.Property<Boolean>
     
    abstract org.gradle.api.file.ConfigurableFileCollection
    FileCollection as comes from another project.
    abstract org.gradle.api.file.ConfigurableFileCollection
    FileCollection because it comes from another project.
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.file.DirectoryProperty
     
    abstract org.gradle.api.provider.Property<Boolean>
     
    abstract org.gradle.api.file.ConfigurableFileCollection
    List of folders and/or jars that contain the merged java resources.
    boolean
     
    abstract org.gradle.api.file.ConfigurableFileCollection
    FileCollection because of the legacy Transform API.
    abstract org.gradle.api.provider.Property<Boolean>
     
    abstract org.gradle.api.file.DirectoryProperty
     
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.file.RegularFileProperty
     
    abstract org.gradle.api.provider.Property<Integer>
     
     
    abstract org.gradle.api.file.DirectoryProperty
     
    abstract org.gradle.api.provider.Property<String>
     
    abstract org.gradle.api.file.DirectoryProperty
     
    com.android.build.gradle.internal.signing.SigningConfigDataProvider
     
    abstract org.gradle.api.file.ConfigurableFileCollection
     
    abstract com.android.build.api.artifact.ArtifactTransformationRequest
     
    abstract org.gradle.api.provider.ListProperty<com.android.build.api.variant.impl.VariantOutputImpl>
     
    void
    setJniDebugBuild(boolean jniDebugBuild)
     

    Methods inherited from class com.android.build.gradle.internal.tasks.NewIncrementalTask

    taskAction

    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, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService

    Methods 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, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, getConvention, notCompatibleWithConfigurationCache

    Methods 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

      @Nullable protected String 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

      @Input @NonNull public abstract org.gradle.api.provider.SetProperty<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(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

      @Input public 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(NAME_ONLY) public abstract org.gradle.api.file.RegularFileProperty getDependencyDataFile()
    • getCreatedBy

      @Input public abstract org.gradle.api.provider.Property<String> 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

      @Input public abstract org.gradle.api.provider.Property<String> getProjectBaseName()
    • getJniDebugBuild

      @Input public boolean getJniDebugBuild()
    • setJniDebugBuild

      public void setJniDebugBuild(boolean jniDebugBuild)
    • getDebugBuild

      @Input public abstract org.gradle.api.provider.Property<Boolean> getDebugBuild()
    • getIsDeterministicEntryOrder

      @Input public abstract org.gradle.api.provider.Property<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<Integer> getMinSdkVersion()
    • getApplicationId

      @Input public abstract org.gradle.api.provider.Property<String> getApplicationId()
    • getNativeLibrariesAndDexPackagingModeNames

      @Input public List<String> getNativeLibrariesAndDexPackagingModeNames()
    • getBuildTargetAbi

      @Input @Optional @Nullable public String 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:
      doTaskAction in class com.android.build.gradle.internal.tasks.NewIncrementalTask