Manages tasks creation.
Modifiers | Name | Description |
---|---|---|
static class |
TaskManager.PostCompilationData |
Class to hold data to setup the many optional post-compilation steps. |
Modifiers | Name | Description |
---|---|---|
static String |
ANDROID_GROUP |
|
static String |
BUILD_GROUP |
|
static String |
DEFAULT_PROGUARD_CONFIG_FILE |
|
static String |
DIR_BUNDLES |
|
static String |
FILE_JACOCO_AGENT |
|
static String |
INSTALL_GROUP |
|
protected AndroidBuilder |
androidBuilder |
|
MockableAndroidJarTask |
createMockableJar |
|
protected BaseExtension |
extension |
|
protected boolean |
isNdkTaskNeeded |
|
protected org.gradle.api.Task |
lintAll |
|
org.gradle.api.Task |
lintCompile |
|
protected org.gradle.api.Project |
project |
|
protected SdkHandler |
sdkHandler |
Type | Name and description |
---|---|
Map<SigningConfig, ValidateSigningTask> |
validateSigningTaskMap |
Constructor and description |
---|
TaskManager
(org.gradle.api.Project project, AndroidBuilder androidBuilder, BaseExtension extension, SdkHandler sdkHandler, DependencyManager dependencyManager, org.gradle.tooling.provider.model.ToolingModelBuilderRegistry toolingRegistry) |
Creates the tasks to build android tests.
variantData
- the test variantCreates the final packaging task, and optionally the zipalign task (if the variant is signed)
assembleTask
- an optional assembleTask to be used. If null a new one is created. The
assembleTask is always set in the Variant.publishApk
- if true the generated APK gets published.Creates the post-compilation tasks for the given Variant. These tasks create the dex file from the .class files, plus optional intermediary steps like proguard and jacoco
variantData
- the variant data.Creates the proguarding task for the given Variant.
variantData
- the variant data.testedVariantData
- optional. variant data representing the tested variant, null if the
variant is not a test variantCreates the split resources packages task if necessary. AAPT will produce split packages for all --split provided parameters. These split packages should be signed and moved unchanged to the APK build output directory.
variantData
- the variant configuration.Create tasks before the evaluation (on plugin apply). This is useful for tasks that could be referenced by custom build logic.
Creates the tasks for a given BaseVariantData.
variantData
- the non-null BaseVariantData.assembleTask
- an optional assembleTask to be used. If null, a new one is created.Creates the tasks to build unit tests.
variantData
- the test variantcreates a zip align. This does not use convention mapping, and is meant to let other plugin create zip align tasks.
name
- the name of the taskinputFile
- the input fileoutputFile
- the output fileCalculate the list of folders that can contain jni artifacts for this variant.
variantData
- the variantReturns a collection of buildables that creates native object. A buildable is considered to be any object that can be used as the argument to Task.dependsOn. This could be a Task or a BuildableModelElement (e.g. BinarySpec).
Returns the directories of the NDK buildables.
Gradle API 1.2.3