AaptOptions

DSL object for configuring aapt options.

Properties

PropertyDescription
failOnMissingConfigEntry

Forces aapt to return an error if it fails to find an entry for a configuration.

ignoreAssets

Pattern describing assets to be ignore.

noCompress

Extensions of files that will not be stored compressed in the APK.

Methods

MethodDescription
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.

Script blocks

No script blocks

Property details

boolean failOnMissingConfigEntry

Forces aapt to return an error if it fails to find an entry for a configuration.

See aapt --help

String ignoreAssets (read-only)

Pattern describing assets to be ignore.

See aapt --help

Collection<String> noCompress

Extensions of files that will not be stored compressed in the APK.

Equivalent of the -0 flag. See aapt --help

Method details

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)

Sets extensions of files that will not be stored compressed in the APK.

Equivalent of the -0 flag. See aapt --help