public class ProcessTestManifest extends ManifestProcessorTask
For both test modules and tests in androidTest process is the same, expect for how the tested application id is extracted.
Tests in androidTest get that info form the
VariantConfiguration.getTestedApplicationId(), while the test modules get the info from
the published intermediate manifest with type AndroidArtifacts.TYPE_METADATA
of the tested app.
| Modifier and Type | Class and Description |
|---|---|
static class |
ProcessTestManifest.ConfigAction |
| Constructor and Description |
|---|
ProcessTestManifest() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.android.manifmerger.ManifestProvider> |
computeProviders()
Compute the final list of providers based on the manifest file collection.
|
protected void |
doFullTaskAction() |
java.io.File |
getAaptFriendlyManifestOutputFile()
The aapt friendly processed Manifest.
|
java.lang.Boolean |
getFunctionalTest() |
java.lang.Boolean |
getHandleProfiling() |
java.lang.String |
getInstrumentationRunner() |
org.gradle.api.file.FileCollection |
getManifests() |
java.lang.String |
getMinSdkVersion() |
com.android.build.gradle.internal.scope.OutputScope |
getOutputScope() |
java.util.Map<java.lang.String,java.lang.Object> |
getPlaceholdersValues() |
java.lang.String |
getTargetSdkVersion() |
java.lang.String |
getTestApplicationId() |
java.lang.String |
getTestedApplicationId() |
java.lang.String |
getTestLabel() |
java.io.File |
getTestManifestFile() |
org.gradle.api.file.FileCollection |
getTestTargetMetadata() |
java.io.File |
getTmpDir() |
void |
setMinSdkVersion(java.lang.String minSdkVersion) |
void |
setTargetSdkVersion(java.lang.String targetSdkVersion) |
void |
setTestApplicationId(java.lang.String testApplicationId) |
void |
setTestedApplicationId(java.lang.String testedApplicationId) |
void |
setTestManifestFile(java.io.File testManifestFile) |
void |
setTmpDir(java.io.File tmpDir) |
getAaptFriendlyManifestOutputDirectory, getInstantRunManifestOutputDirectory, getManifestOutputDirectory, serializeMap, setAaptFriendlyManifestOutputDirectory, setInstantRunManifestOutputDirectory, setManifestOutputDirectorydoIncrementalTaskAction, getIncrementalFolder, isIncremental, setIncrementalFoldergetBuilder, getBuildTools, getILogger, setAndroidBuildergetVariantName, setVariantNameaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringpublic com.android.build.gradle.internal.scope.OutputScope getOutputScope()
protected void doFullTaskAction()
throws java.io.IOException
doFullTaskAction in class com.android.build.gradle.internal.tasks.IncrementalTaskjava.io.IOException@Nullable public java.io.File getAaptFriendlyManifestOutputFile()
ManifestProcessorTaskgetAaptFriendlyManifestOutputFile in class ManifestProcessorTask@InputFile @Optional public java.io.File getTestManifestFile()
public void setTestManifestFile(java.io.File testManifestFile)
public java.io.File getTmpDir()
public void setTmpDir(java.io.File tmpDir)
@Input public java.lang.String getTestApplicationId()
public void setTestApplicationId(java.lang.String testApplicationId)
@Input @Optional public java.lang.String getTestedApplicationId()
public void setTestedApplicationId(java.lang.String testedApplicationId)
@Input public java.lang.String getMinSdkVersion()
public void setMinSdkVersion(java.lang.String minSdkVersion)
@Input public java.lang.String getTargetSdkVersion()
public void setTargetSdkVersion(java.lang.String targetSdkVersion)
@Input public java.lang.String getInstrumentationRunner()
@Input public java.lang.Boolean getHandleProfiling()
@Input public java.lang.Boolean getFunctionalTest()
@Input @Optional public java.lang.String getTestLabel()
@Input public java.util.Map<java.lang.String,java.lang.Object> getPlaceholdersValues()
@InputFiles @Optional @Nullable public org.gradle.api.file.FileCollection getTestTargetMetadata()
public java.util.List<com.android.manifmerger.ManifestProvider> computeProviders()
@InputFiles public org.gradle.api.file.FileCollection getManifests()