AndroidResources

public interface AndroidResources


Defines a variant's aapt options.

Summary

Public methods

abstract @NonNull ListProperty<@NonNull String>

The list of additional parameters to pass to aapt.

abstract @NonNull ListProperty<@NonNull String>

The list of patterns describing assets to be ignored.

abstract @NonNull ListProperty<@NonNull String>

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

Public methods

getAaptAdditionalParameters

abstract @NonNull ListProperty<@NonNull StringgetAaptAdditionalParameters()

The list of additional parameters to pass to aapt.

This property will be initialized using the corresponding DSL value.

getIgnoreAssetsPatterns

abstract @NonNull ListProperty<@NonNull StringgetIgnoreAssetsPatterns()

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.

getNoCompress

@Incubating
abstract @NonNull ListProperty<@NonNull StringgetNoCompress()

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.