DSL object for configuring dx options.
Property | Description |
incremental | Whether to enable the incremental mode for dx. This has many limitations and may not work. Use carefully. |
javaMaxHeapSize | Sets the -JXmx* value when calling dx. Format should follow the 1024M pattern. |
jumboMode | Enable jumbo mode in dx (--force-jumbo). |
maxProcessCount | The maximum number of concurrent processes that can be used to dex. Defaults to 4. |
preDexLibraries | Whether to pre-dex libraries. This can improve incremental builds, but clean builds may be slower. |
threadCount | Number of threads to use when running dx. Defaults to 4. |
Whether to enable the incremental mode for dx. This has many limitations and may not work. Use carefully.
String
javaMaxHeapSize
Sets the -JXmx* value when calling dx. Format should follow the 1024M pattern.
Integer
maxProcessCount
The maximum number of concurrent processes that can be used to dex. Defaults to 4.
Be aware that the number of concurrent process times the memory requirement represent the
minimum amount of memory that will be used by the dx processes:
Total Memory = getMaxProcessCount() * getJavaMaxHeapSize()
To avoid trashing, keep these two settings appropriate for your configuration.
Whether to pre-dex libraries. This can improve incremental builds, but clean builds may be slower.
Integer
threadCount
Number of threads to use when running dx. Defaults to 4.