AndroidResources

interface AndroidResources


DSL object for configuring aapt options.

Summary

Public functions

Unit

This function is deprecated. Replaced with property additionalParameters

Unit
additionalParameters(vararg params: String)

This function is deprecated. Replaced with property additionalParameters

Unit
noCompress(noCompress: String)

This function is deprecated. Replaced with property noCompress

Unit
noCompress(vararg noCompress: String)

This function is deprecated. Replaced with property noCompress

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.

MutableCollection<String>

Patterns describing assets to be ignored.

Boolean

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

MutableCollection<String>

File extensions of Android resources, assets, and Java resources to be stored uncompressed in the APK.

Public functions

additionalParameters

fun additionalParameters(params: String): Unit

Adds additional parameters to be passed to aapt.

additionalParameters

fun additionalParameters(vararg params: String): Unit

Adds additional parameters to be passed to aapt.

noCompress

fun noCompress(noCompress: String): Unit

Adds a file extension of Android resources, assets, and Java resources to be stored uncompressed in the APK. Adding an empty extension (i.e., noCompress('')) will disable compression for all Android resources, assets, and Java resources.

noCompress

fun noCompress(vararg noCompress: String): Unit

Adds file extensions of Android resources, assets, and Java resources to be stored uncompressed in the APK. Adding an empty extension (e.g., noCompress('')) will disable compression for all Android resources, assets, and Java resources.

Public properties

additionalParameters

val additionalParametersMutableList<String>

List of additional parameters to pass to aapt.

failOnMissingConfigEntry

var failOnMissingConfigEntryBoolean

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

See aapt --help

ignoreAssetsPattern

var ignoreAssetsPatternString?

Pattern describing assets to be ignored.

This is ignoreAssetsPatterns joined by ':'.

ignoreAssetsPatterns

val ignoreAssetsPatternsMutableCollection<String>

Patterns describing assets to be ignored.

If empty, defaults to ["!.svn", "!.git", "!.ds_store", "!*.scc", ".*", "<dir>_*", "!CVS", "!thumbs.db", "!picasa.ini", "!*~"]

namespaced

var 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>

File extensions of Android resources, assets, and Java resources to be stored uncompressed in the APK. Adding an empty extension (e.g., setting noCompress '') will disable compression for all Android resources, assets, and Java resources.