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 a file extension of Android resources, assets, and Java resources to be stored uncompressed in the APK.

@Incubating Unit
noCompress(vararg noCompress: String)

Adds file extensions of Android resources, assets, and Java resources to be stored uncompressed 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.

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

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

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