AndroidResources
interface AndroidResources
com.android.build.api.dsl.AndroidResources |
DSL object for configuring aapt options.
Summary
Public methods |
|
---|---|
abstract Unit |
additionalParameters(params: String) Adds additional parameters to be passed to |
abstract Unit |
additionalParameters(vararg params: String) Adds additional parameters to be passed to |
abstract Unit |
noCompress(noCompress: String) Adds extensions of files that will not be stored compressed in the APK. |
abstract Unit |
noCompress(vararg noCompress: String) Adds extensions of files that will not be stored compressed in the APK. |
Properties |
|
---|---|
abstract MutableList<String> |
List of additional parameters to pass to |
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 Boolean |
Indicates whether the resources in this sub-project are fully namespaced. |
abstract MutableCollection<String> |
Extensions of files that will not be stored compressed in the APK. |
Public methods
additionalParameters
@Incubating abstract fun additionalParameters(params: String): Unit
Adds additional parameters to be passed to aapt
.
additionalParameters
@Incubating abstract fun additionalParameters(vararg params: String): Unit
Adds additional parameters to be passed to aapt
.
noCompress
@Incubating abstract fun noCompress(noCompress: String): Unit
Adds extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help
noCompress
@Incubating abstract fun noCompress(vararg noCompress: String): Unit
Adds extensions of files that will not be stored compressed in the APK.
Equivalent of the -0 flag. See aapt --help
Properties
additionalParameters
abstract val additionalParameters: MutableList<String>
List of additional parameters to pass to aapt
.
failOnMissingConfigEntry
abstract var failOnMissingConfigEntry: Boolean
Forces aapt to return an error if it fails to find an entry for a configuration.
See aapt --help
ignoreAssetsPattern
abstract var ignoreAssetsPattern: String?
Pattern describing assets to be ignored.
See aapt --help
namespaced
abstract 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
abstract val noCompress: MutableCollection<String>
Extensions of files that will not be stored compressed in the APK. Adding an empty
extension, i.e., setting noCompress ''
will trivially disable compression
for all files.
Equivalent of the -0 flag. See aapt --help