DSL object for configuring aapt options.
Property | Description |
additionalParameters | The list of additional parameters to pass to |
cruncherEnabled | Deprecated Whether to crunch PNGs. |
cruncherProcesses | Obtains the number of cruncher processes to use. More cruncher processes will crunch files faster, but will require more memory and CPU. |
failOnMissingConfigEntry | Forces aapt to return an error if it fails to find an entry for a configuration. |
ignoreAssets | Pattern describing assets to be ignore. |
ignoreAssetsPattern | Pattern describing assets to be ignore. |
noCompress | Extensions of files that will not be stored compressed in the APK. Adding an empty
extension, i.e., setting |
Method | Description |
additionalParameters(param) | Adds additional parameters to be passed to |
additionalParameters(params) | Adds additional parameters to be passed to |
noCompress(noCompress) | Sets extensions of files that will not be stored compressed in the APK. |
noCompress(noCompress) | Sets extensions of files that will not be stored compressed in the APK. |
Note: This property is deprecated and will be removed in a future version of the plugin.
Whether to crunch PNGs.
This will reduce the size of the APK if PNGs resources are not already optimally compressed, at the cost of extra time to build.
PNG crunching is enabled by default in the release build type and disabled by default in the debug build type.
This is replaced by BuildType.isCrunchPngs()
.
Obtains the number of cruncher processes to use. More cruncher processes will crunch files faster, but will require more memory and CPU.
Forces aapt to return an error if it fails to find an entry for a configuration.
See aapt --help
Collection
<String
>
noCompress
Collection
<String
>Extensions of files that will not be stored compressed in the APK. Adding an empty
extension, i.e., setting noCompress ''
will trivially disable compression
for all files.
Equivalent of the -0 flag. See aapt --help
void
additionalParameters
(String
param)
Adds additional parameters to be passed to aapt
.
void
additionalParameters
(String
...
params)
String
...Adds additional parameters to be passed to aapt
.
void
noCompress
(String
noCompress)
Sets extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help
void
noCompress
(String
...
noCompress)
String
...Sets extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help