Stay organized with collections
Save and categorize content based on your preferences.
SplitOptions
@Incubating interface SplitOptions
Known Direct Subclasses
AbiSplit |
DSL object for configuring per-abi splits options.
|
DensitySplit |
DSL object for configuring per-density splits options.
|
|
Base data representing how an FULL_APK should be split for a given dimension (density, abi).
Summary
Public methods
|
abstract Unit |
Excludes some values
|
abstract Unit |
Includes some values
|
abstract Unit |
Resets the list of included split configuration.
|
Properties
|
abstract Boolean |
Whether to split in this dimension.
|
Public methods
exclude
abstract fun exclude(vararg excludes: String): Unit
Excludes some values
include
abstract fun include(vararg includes: String): Unit
Includes some values
reset
abstract fun reset(): Unit
Resets the list of included split configuration.
Use this before calling include, in order to manually configure the list of configuration
to split on, rather than excluding from the default list.
Properties
isEnable
abstract var isEnable: Boolean
Whether to split in this dimension.
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,["# SplitOptions\n============\n\n```\n@Incubating interface SplitOptions\n```\n\n|---------------------------------------------|\n| [com.android.build.api.dsl.SplitOptions](#) |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [AbiSplit](/reference/tools/gradle-api/4.2/com/android/build/api/dsl/AbiSplit), [DensitySplit](/reference/tools/gradle-api/4.2/com/android/build/api/dsl/DensitySplit) |----------------------------------------------------------------------------------------|--------------------------------------------------------| | [AbiSplit](/reference/tools/gradle-api/4.2/com/android/build/api/dsl/AbiSplit) | DSL object for configuring per-abi splits options. | | [DensitySplit](/reference/tools/gradle-api/4.2/com/android/build/api/dsl/DensitySplit) | DSL object for configuring per-density splits options. | |\n\nBase data representing how an FULL_APK should be split for a given dimension (density, abi).\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [exclude](#exclude(kotlin.String))`(`vararg` `excludes:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Excludes some values |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [include](#include(kotlin.String))`(`vararg` `includes:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Includes some values |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [reset](#reset())`()` Resets the list of included split configuration. |\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isEnable](#isEnable:kotlin.Boolean) Whether to split in this dimension. |\n\nPublic methods\n--------------\n\n### exclude\n\n```\nabstract fun exclude(vararg excludes: String): Unit\n```\n\nExcludes some values \n\n### include\n\n```\nabstract fun include(vararg includes: String): Unit\n```\n\nIncludes some values \n\n### reset\n\n```\nabstract fun reset(): Unit\n```\n\nResets the list of included split configuration.\n\nUse this before calling include, in order to manually configure the list of configuration\nto split on, rather than excluding from the default list.\n\nProperties\n----------\n\n### isEnable\n\n```\nabstract var isEnable: Boolean\n```\n\nWhether to split in this dimension."]]