Stay organized with collections
Save and categorize content based on your preferences.
AaptOptions
@Incubating interface AaptOptions
Defines a variant's aapt options.
Summary
Properties
additionalParameters
abstract val additionalParameters: ListProperty<String>
The list of additional parameters to pass to aapt.
This property will be initialized using the corresponding DSL value.
ignoreAssetsPatterns
abstract val ignoreAssetsPatterns: ListProperty<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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AaptOptions\n===========\n\n```\n@Incubating interface AaptOptions\n```\n\n|------------------------------------------------|\n| [com.android.build.api.variant.AaptOptions](#) |\n\nDefines a variant's aapt options.\n\nSummary\n-------\n\n| ### Properties ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\\\u003e | [additionalParameters](#additionalParameters:org.gradle.api.provider.ListProperty) The list of additional parameters to pass to aapt. |\n| abstract [ListProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/ListProperty.html)\\\u003c[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)\\\u003e | [ignoreAssetsPatterns](#ignoreAssetsPatterns:org.gradle.api.provider.ListProperty) The list of patterns describing assets to be ignored. |\n\nProperties\n----------\n\n### additionalParameters\n\n```\nabstract val additionalParameters: ListProperty\u003cString\u003e\n```\n\nThe list of additional parameters to pass to aapt.\n\nThis property will be initialized using the corresponding DSL value. \n\n### ignoreAssetsPatterns\n\n```\nabstract val ignoreAssetsPatterns: ListProperty\u003cString\u003e\n```\n\nThe list of patterns describing assets to be ignored.\n\nSee aapt's --ignore-assets flag via `aapt --help`. Note: the --ignore-assets flag accepts a\nsingle string of colon-delimited patterns, whereas this property is a list of patterns.\n\nThis property will be initialized using the corresponding DSL value."]]