Modifier and Type | Class and Description |
---|---|
static class |
DxStep.Option
Options to pass to
dx . |
Modifier and Type | Field and Description |
---|---|
static String |
D8 |
static int |
DEX_REFERENCE_OVERFLOW_EXIT_CODE |
static String |
DX
Available tools to create dex files *
|
static int |
FAILURE_EXIT_CODE |
static int |
SUCCESS_EXIT_CODE |
workingDirectory
Constructor and Description |
---|
DxStep(ProjectFilesystem filesystem,
AndroidPlatformTarget androidPlatformTarget,
Path outputDexFile,
Iterable<Path> filesToDex) |
DxStep(ProjectFilesystem filesystem,
AndroidPlatformTarget androidPlatformTarget,
Path outputDexFile,
Iterable<Path> filesToDex,
EnumSet<DxStep.Option> options,
Optional<String> maxHeapSize,
String dexTool,
boolean intermediate) |
DxStep(ProjectFilesystem filesystem,
AndroidPlatformTarget androidPlatformTarget,
Path outputDexFile,
Iterable<Path> filesToDex,
EnumSet<DxStep.Option> options,
Optional<String> maxHeapSize,
String dexTool,
boolean intermediate,
Collection<Path> classpathFiles,
Optional<String> bucketId,
Optional<Integer> minSdkVersion) |
DxStep(ProjectFilesystem filesystem,
AndroidPlatformTarget androidPlatformTarget,
Path outputDexFile,
Iterable<Path> filesToDex,
EnumSet<DxStep.Option> options,
String dexTool) |
Modifier and Type | Method and Description |
---|---|
StepExecutionResult |
execute(ExecutionContext context) |
Path |
getOutputDexFile() |
protected com.google.common.collect.ImmutableList<String> |
getShellCommandInternal(ExecutionContext context)
Implementations of this method should not have any observable side-effects.
|
String |
getShortName() |
protected boolean |
shouldPrintStderr(Verbosity verbosity) |
protected boolean |
shouldPrintStdout(Verbosity verbosity) |
addOptions, getDescription, getDuration, getEnvironmentVariables, getExitCodeFromResult, getShellCommand, getShellCommandArgsForDescription, getStderr, getStdin, getStdout, getTimeout, getTimeoutHandler
public static final int SUCCESS_EXIT_CODE
public static final int FAILURE_EXIT_CODE
public static final int DEX_REFERENCE_OVERFLOW_EXIT_CODE
public static final String DX
public static final String D8
public DxStep(ProjectFilesystem filesystem, AndroidPlatformTarget androidPlatformTarget, Path outputDexFile, Iterable<Path> filesToDex)
outputDexFile
- path to the file where the generated classes.dex should go.filesToDex
- each element in this set is a path to a .class file, a zip file of .class
files, or a directory of .class files.public DxStep(ProjectFilesystem filesystem, AndroidPlatformTarget androidPlatformTarget, Path outputDexFile, Iterable<Path> filesToDex, EnumSet<DxStep.Option> options, String dexTool)
outputDexFile
- path to the file where the generated classes.dex should go.filesToDex
- each element in this set is a path to a .class file, a zip file of .class
files, or a directory of .class files.options
- to pass to dx
.dexTool
- the tool used to perform dexing.public DxStep(ProjectFilesystem filesystem, AndroidPlatformTarget androidPlatformTarget, Path outputDexFile, Iterable<Path> filesToDex, EnumSet<DxStep.Option> options, Optional<String> maxHeapSize, String dexTool, boolean intermediate)
outputDexFile
- path to the file where the generated classes.dex should go.filesToDex
- each element in this set is a path to a .class file, a zip file of .class
files, or a directory of .class files.options
- to pass to dx
.maxHeapSize
- The max heap size used for out of process dex.dexTool
- the tool used to perform dexing.public DxStep(ProjectFilesystem filesystem, AndroidPlatformTarget androidPlatformTarget, Path outputDexFile, Iterable<Path> filesToDex, EnumSet<DxStep.Option> options, Optional<String> maxHeapSize, String dexTool, boolean intermediate, @Nullable Collection<Path> classpathFiles, Optional<String> bucketId, Optional<Integer> minSdkVersion)
outputDexFile
- path to the file where the generated classes.dex should go.filesToDex
- each element in this set is a path to a .class file, a zip file of .class
files, or a directory of .class files.options
- to pass to dx
.maxHeapSize
- The max heap size used for out of process dex.dexTool
- the tool used to perform dexing.classpathFiles
- specifies classpath for interface static and default methods desugaring.minSdkVersion
- protected com.google.common.collect.ImmutableList<String> getShellCommandInternal(ExecutionContext context)
ShellStep
getShellCommandInternal
in class ShellStep
public StepExecutionResult execute(ExecutionContext context) throws IOException, InterruptedException
execute
in interface Step
execute
in class ShellStep
IOException
InterruptedException
protected boolean shouldPrintStderr(Verbosity verbosity)
shouldPrintStderr
in class ShellStep
ExecutionContext
. If false
, stderr will only be printed on
error and only if verbosity is set to standard information.protected boolean shouldPrintStdout(Verbosity verbosity)
shouldPrintStdout
in class ShellStep
verbosity
- is provided in case that affects what should be printed.ExecutionContext
. If false
, stdout will only be printed on
error and only if verbosity is set to standard information.public String getShortName()
public Path getOutputDexFile()