AndroidResources

interface AndroidResources

Known direct subclasses
AaptOptions

This interface is deprecated. Renamed to AndroidResources


DSL object for configuring aapt options.

Summary

Public functions

@Incubating Unit

Adds additional parameters to be passed to aapt.

@Incubating Unit
additionalParameters(vararg params: String?)

Adds additional parameters to be passed to aapt.

@Incubating Unit
noCompress(noCompress: String?)

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

@Incubating Unit
noCompress(vararg noCompress: String?)

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

Public properties

MutableList<String>

List of additional parameters to pass to aapt.

Boolean

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

String?

Pattern describing assets to be ignored.

Boolean

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

MutableCollection<String>

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

Public functions

additionalParameters

@Incubating
fun additionalParameters(params: String?): Unit

Adds additional parameters to be passed to aapt.

additionalParameters

@Incubating
fun additionalParameters(vararg params: String?): Unit

Adds additional parameters to be passed to aapt.

noCompress

@Incubating
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

@Incubating
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

Public properties

additionalParameters

val additionalParametersMutableList<String>

List of additional parameters to pass to aapt.

failOnMissingConfigEntry

val failOnMissingConfigEntryBoolean

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

See aapt --help

ignoreAssetsPattern

val ignoreAssetsPatternString?

Pattern describing assets to be ignored.

See aapt --help

namespaced

val namespacedBoolean

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

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

noCompress

val noCompressMutableCollection<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