public abstract class PackageAndroidArtifact
extends com.android.build.gradle.internal.tasks.NewIncrementalTask
| Modifier and Type | Class and Description |
|---|---|
static class |
PackageAndroidArtifact.CreationAction<T extends PackageAndroidArtifact> |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Collection<java.lang.String> |
aaptOptionsNoCompress |
protected com.android.build.gradle.internal.packaging.IncrementalPackagerBuilder.ApkFormat |
apkFormat
Desired output format.
|
protected java.lang.String |
buildTargetAbi |
protected java.lang.String |
buildTargetDensity |
protected com.android.builder.utils.FileCache |
fileCache |
protected boolean |
keepTimestampsInApk |
protected com.android.build.gradle.internal.scope.InternalArtifactType |
manifestType |
protected java.util.function.Supplier<com.android.sdklib.AndroidVersion> |
minSdkVersion |
protected com.android.build.gradle.tasks.PackageAndroidArtifact.OutputFileProvider |
outputFileProvider |
protected com.android.build.gradle.internal.scope.OutputScope |
outputScope |
protected java.lang.String |
projectBaseName |
protected java.lang.Integer |
targetApi |
| Constructor and Description |
|---|
PackageAndroidArtifact(org.gradle.workers.WorkerExecutor workerExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
doTaskAction(org.gradle.work.InputChanges changes) |
java.util.Set<java.lang.String> |
getAbiFilters() |
java.lang.String |
getApkFormat() |
abstract org.gradle.api.file.RegularFileProperty |
getApkList() |
java.util.Collection<java.lang.String> |
getApkNames()
Returns the paths to generated APKs as @Input to this task, so that when the output file name
is changed (e.g., by the users), the task will be re-executed in non-incremental mode.
|
abstract org.gradle.api.file.DirectoryProperty |
getAssets() |
java.lang.String |
getBuildTargetAbi() |
java.lang.String |
getBuildTargetDensity() |
abstract org.gradle.api.provider.Property<java.lang.String> |
getCreatedBy() |
boolean |
getDebugBuild() |
abstract org.gradle.api.file.ConfigurableFileCollection |
getDexFolders()
FileCollection because of the legacy Transform API.
|
abstract org.gradle.api.file.ConfigurableFileCollection |
getFeatureDexFolder()
FileCollection as comes from another project.
|
abstract org.gradle.api.file.DirectoryProperty |
getIncrementalFolder() |
protected abstract com.android.build.gradle.internal.scope.InternalArtifactType |
getInternalArtifactType() |
abstract org.gradle.api.file.ConfigurableFileCollection |
getJavaResourceFiles()
List of folders and/or jars that contain the merged java resources.
|
boolean |
getJniDebugBuild() |
abstract org.gradle.api.file.ConfigurableFileCollection |
getJniFolders()
FileCollection because of the legacy Transform API.
|
boolean |
getKeepTimestampsInApk() |
abstract org.gradle.api.file.DirectoryProperty |
getManifests() |
java.lang.String |
getManifestTypeName() |
int |
getMinSdkVersion() |
java.util.List<java.lang.String> |
getNativeLibrariesAndDexPackagingModeName() |
java.util.Collection<java.lang.String> |
getNoCompressExtensions() |
abstract org.gradle.api.file.DirectoryProperty |
getOutputDirectory() |
java.lang.String |
getProjectBaseName() |
abstract org.gradle.api.file.ConfigurableFileCollection |
getResourceFiles() |
org.gradle.api.file.FileCollection |
getSigningConfig()
Retrieves the signing config file collection.
|
java.lang.Integer |
getTargetApi() |
java.lang.String |
getTaskInputTypeName() |
void |
setAbiFilters(java.util.Set<java.lang.String> abiFilters) |
void |
setDebugBuild(boolean debugBuild) |
void |
setJniDebugBuild(boolean jniDebugBuild) |
void |
setSigningConfig(org.gradle.api.file.FileCollection signingConfig) |
getVariantName, recordTaskAction, setVariantNamenewInputDirectory, newInputFile, newOutputDirectory, newOutputFileappendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringprotected com.android.build.gradle.internal.scope.InternalArtifactType manifestType
protected java.util.function.Supplier<com.android.sdklib.AndroidVersion> minSdkVersion
@Nullable protected java.util.Collection<java.lang.String> aaptOptionsNoCompress
protected com.android.build.gradle.internal.scope.OutputScope outputScope
protected java.lang.String projectBaseName
@Nullable protected java.lang.String buildTargetAbi
@Nullable protected java.lang.String buildTargetDensity
@Nullable protected com.android.build.gradle.tasks.PackageAndroidArtifact.OutputFileProvider outputFileProvider
protected com.android.builder.utils.FileCache fileCache
protected boolean keepTimestampsInApk
@Nullable protected java.lang.Integer targetApi
protected com.android.build.gradle.internal.packaging.IncrementalPackagerBuilder.ApkFormat apkFormat
@Inject public PackageAndroidArtifact(org.gradle.workers.WorkerExecutor workerExecutor)
@InputFiles @Incremental @PathSensitive(value=RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getManifests()
@InputFiles @Incremental @PathSensitive(value=RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getResourceFiles()
@Input @NonNull public java.util.Set<java.lang.String> getAbiFilters()
public void setAbiFilters(@Nullable
java.util.Set<java.lang.String> abiFilters)
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getIncrementalFolder()
@Input public java.lang.String getManifestTypeName()
@Classpath @Incremental public abstract org.gradle.api.file.ConfigurableFileCollection getJavaResourceFiles()
FileCollection because of the legacy Transform API.
@Classpath @Incremental public abstract org.gradle.api.file.ConfigurableFileCollection getJniFolders()
@InputFiles @Incremental @PathSensitive(value=RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getDexFolders()
@InputFiles @Incremental @PathSensitive(value=RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getFeatureDexFolder()
@InputFiles @Incremental @PathSensitive(value=RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getAssets()
@Input public abstract org.gradle.api.provider.Property<java.lang.String> getCreatedBy()
@Input public java.lang.String getProjectBaseName()
@Nullable @Input @Optional public java.lang.Integer getTargetApi()
@Input public boolean getKeepTimestampsInApk()
@Input public java.lang.String getApkFormat()
@Input public boolean getJniDebugBuild()
public void setJniDebugBuild(boolean jniDebugBuild)
@Input public boolean getDebugBuild()
public void setDebugBuild(boolean debugBuild)
@InputFiles @Optional @PathSensitive(value=RELATIVE) public org.gradle.api.file.FileCollection getSigningConfig()
public void setSigningConfig(org.gradle.api.file.FileCollection signingConfig)
@Input public int getMinSdkVersion()
@Input public java.util.List<java.lang.String> getNativeLibrariesAndDexPackagingModeName()
@NonNull @Input public java.util.Collection<java.lang.String> getNoCompressExtensions()
@Input public java.lang.String getTaskInputTypeName()
@Input @Optional @Nullable public java.lang.String getBuildTargetAbi()
@Input @Optional @Nullable public java.lang.String getBuildTargetDensity()
@OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputDirectory()
@Input public java.util.Collection<java.lang.String> getApkNames()
@InputFile @PathSensitive(value=RELATIVE) public abstract org.gradle.api.file.RegularFileProperty getApkList()
@Internal protected abstract com.android.build.gradle.internal.scope.InternalArtifactType getInternalArtifactType()
public void doTaskAction(@NonNull
org.gradle.work.InputChanges changes)
doTaskAction in class com.android.build.gradle.internal.tasks.NewIncrementalTask