AndroidResources
interface AndroidResources
AaptOptions |
This interface is deprecated. Renamed to AndroidResources |
DSL object for configuring aapt options.
Summary
Public functions |
|
---|---|
Unit |
This function is deprecated. Replaced with property additionalParameters |
Unit |
This function is deprecated. Replaced with property additionalParameters |
Unit |
This function is deprecated. Replaced with property noCompress |
Unit |
This function is deprecated. Replaced with property noCompress |
Public properties |
|
---|---|
MutableList<String> |
List of additional parameters to pass to |
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
funadditionalParameters(params: String): Unit
Adds additional parameters to be passed to aapt
.
additionalParameters
funadditionalParameters(vararg params: String): Unit
Adds additional parameters to be passed to aapt
.
noCompress
funnoCompress(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
funnoCompress(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 additionalParameters: MutableList<String>
List of additional parameters to pass to aapt
.
failOnMissingConfigEntry
var failOnMissingConfigEntry: Boolean
Forces aapt to return an error if it fails to find an entry for a configuration.
See aapt --help
ignoreAssetsPattern
var ignoreAssetsPattern: String?
Pattern describing assets to be ignored.
This is ignoreAssetsPatterns
joined by ':'.
ignoreAssetsPatterns
val ignoreAssetsPatterns: MutableCollection<String>
Patterns describing assets to be ignored.
If empty, defaults to ["!.svn", "!.git", "!.ds_store", "!*.scc", ".*", "<dir>_*", "!CVS", "!thumbs.db", "!picasa.ini", "!*~"]
namespaced
var namespaced: Boolean
Indicates whether the resources in this sub-project are fully namespaced.
This property is incubating and may change in a future release.
noCompress
val noCompress: MutableCollection<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.