AaptOptions

@Incubating interface AaptOptions
com.android.build.api.dsl.AaptOptions

DSL object for configuring aapt options.

Summary

Public methods

abstract Unit

Adds additional parameters to be passed to aapt.

abstract Unit
additionalParameters(vararg params: String)

Adds additional parameters to be passed to aapt.

abstract Unit
noCompress(noCompress: String)

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

abstract Unit
noCompress(vararg noCompress: String)

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

Properties

abstract MutableList<String>

List of additional parameters to pass to aapt.

abstract Boolean

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

abstract String?

Pattern describing assets to be ignore.

abstract Boolean

Indicates whether the resources in this sub-project are fully namespaced.

abstract MutableCollection<String>

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

Public methods

additionalParameters

abstract fun additionalParameters(params: String): Unit

Adds additional parameters to be passed to aapt.

additionalParameters

abstract fun additionalParameters(vararg params: String): Unit

Adds additional parameters to be passed to aapt.

noCompress

abstract fun noCompress(noCompress: String): Unit

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

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

noCompress

abstract fun noCompress(vararg noCompress: String): Unit

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

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

Properties

additionalParameters

abstract val additionalParameters: MutableList<String>

List of additional parameters to pass to aapt.

failOnMissingConfigEntry

abstract var failOnMissingConfigEntry: Boolean

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

See aapt --help

ignoreAssetsPattern

abstract var ignoreAssetsPattern: String?

Pattern describing assets to be ignore.

See aapt --help

namespaced

abstract var namespaced: Boolean

Indicates whether the resources in this sub-project are fully namespaced.

This property is incubating and may change in a future release.

noCompress

abstract val noCompress: MutableCollection<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