AndroidResources

Added in 7.0.0

interface AndroidResources

Known direct subclasses
ApplicationAndroidResources

Build-time properties for Android Resources inside a Component.


Build-time properties for Android Resources inside a Component.

This is accessed via GeneratesApk.androidResources

Summary

Public properties

ListProperty<String>

The list of additional parameters to pass to aapt.

Boolean

Flag indicating whether databinding feature is on

ListProperty<String>

The list of patterns describing assets to be ignored.

ListProperty<String>

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

Boolean

Flag indicating whether viewbinding feature is on

Public properties

aaptAdditionalParameters

Added in 7.0.0
val aaptAdditionalParametersListProperty<String>

The list of additional parameters to pass to aapt.

This property will be initialized using the corresponding DSL value.

dataBinding

Added in 8.4.0
val dataBindingBoolean

Flag indicating whether databinding feature is on

ignoreAssetsPatterns

Added in 7.0.0
val ignoreAssetsPatternsListProperty<String>

The list of patterns describing assets to be ignored.

See aapt's --ignore-assets flag via aapt --help. Note: the --ignore-assets flag accepts a single string of colon-delimited patterns, whereas this property is a list of patterns.

This property will be initialized using the corresponding DSL value.

noCompress

Added in 7.2.0
val noCompressListProperty<String>

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

viewBinding

Added in 8.4.0
val viewBindingBoolean

Flag indicating whether viewbinding feature is on