AndroidResources

public interface AndroidResources


DSL object for configuring aapt options.

Summary

Public methods

abstract void

This method is deprecated. Replaced with property additionalParameters

abstract void

This method is deprecated. Replaced with property additionalParameters

abstract @NonNull List<@NonNull String>

List of additional parameters to pass to aapt.

abstract boolean

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

abstract String

Pattern describing assets to be ignored.

abstract @NonNull Collection<@NonNull String>

Patterns describing assets to be ignored.

abstract boolean

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

abstract @NonNull Collection<@NonNull String>

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

abstract void
noCompress(@NonNull String noCompress)

This method is deprecated. Replaced with property noCompress

abstract void
noCompress(@NonNull String noCompress)

This method is deprecated. Replaced with property noCompress

abstract void
setFailOnMissingConfigEntry(boolean failOnMissingConfigEntry)

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

abstract void
setIgnoreAssetsPattern(String ignoreAssetsPattern)

Pattern describing assets to be ignored.

abstract void
@Incubating
setNamespaced(boolean namespaced)

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

Public methods

additionalParameters

abstract void additionalParameters(@NonNull String params)

Adds additional parameters to be passed to aapt.

additionalParameters

abstract void additionalParameters(@NonNull String params)

Adds additional parameters to be passed to aapt.

getAdditionalParameters

abstract @NonNull List<@NonNull StringgetAdditionalParameters()

List of additional parameters to pass to aapt.

getFailOnMissingConfigEntry

abstract boolean getFailOnMissingConfigEntry()

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

See aapt --help

getIgnoreAssetsPattern

abstract String getIgnoreAssetsPattern()

Pattern describing assets to be ignored.

This is ignoreAssetsPatterns joined by ':'.

getIgnoreAssetsPatterns

abstract @NonNull Collection<@NonNull StringgetIgnoreAssetsPatterns()

Patterns describing assets to be ignored.

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

getNamespaced

@Incubating
abstract boolean getNamespaced()

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

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

getNoCompress

abstract @NonNull Collection<@NonNull StringgetNoCompress()

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.

noCompress

abstract void noCompress(@NonNull String noCompress)

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

abstract void noCompress(@NonNull String noCompress)

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.

setFailOnMissingConfigEntry

abstract void setFailOnMissingConfigEntry(boolean failOnMissingConfigEntry)

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

See aapt --help

setIgnoreAssetsPattern

abstract void setIgnoreAssetsPattern(String ignoreAssetsPattern)

Pattern describing assets to be ignored.

This is ignoreAssetsPatterns joined by ':'.

setNamespaced

@Incubating
abstract void setNamespaced(boolean namespaced)

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

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