class AaptOptions extends Object
DSL object for configuring aapt options.
Type | Name and description |
---|---|
void |
failOnMissingConfigEntry(boolean value) |
boolean |
getCruncherEnabled() Returns true if the PNGs should be crunched, false otherwise. |
boolean |
getFailOnMissingConfigEntry() Forces aapt to return an error if it fails to find an entry for a configuration. |
String |
getIgnoreAssets() Pattern describing assets to be ignore. |
Collection<String> |
getNoCompress() Extensions of files that will not be stored compressed in the APK. |
boolean |
getUseNewCruncher() Whether to use the new cruncher. |
void |
noCompress(String noCompress) Sets extensions of files that will not be stored compressed in the APK. |
void |
noCompress(String... noCompress) Sets extensions of files that will not be stored compressed in the APK. |
void |
setCruncherEnabled(boolean value) Enables or disables PNG crunching. |
void |
setFailOnMissingConfigEntry(boolean value) |
void |
setIgnoreAssetsPattern(String ignoreAssetsPattern) |
void |
setNoCompress(String noCompress) |
void |
setNoCompress(String... noCompress) |
void |
setUseNewCruncher(boolean value) |
void |
useNewCruncher(boolean value) |
Returns true if the PNGs should be crunched, false otherwise.
Forces aapt to return an error if it fails to find an entry for a configuration.
See aapt --help
Extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help
Whether to use the new cruncher.
Sets extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help
Sets extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help
Enables or disables PNG crunching.