Stay organized with collections
Save and categorize content based on your preferences.
Split
interface Split
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 properties |
Boolean |
Whether to split in this dimension.
|
Public functions
reset
@Incubating
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.
Public properties
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Split\n=====\n\n\n```\ninterface Split\n```\n\n\u003cbr /\u003e\n\nKnown direct subclasses \n[AbiSplit](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/AbiSplit), [DensitySplit](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/DensitySplit) \n\n|----------------------------------------------------------------------------------------|--------------------------------------------------------|\n| [AbiSplit](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/AbiSplit) | DSL object for configuring per-abi splits options. |\n| [DensitySplit](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/DensitySplit) | DSL object for configuring per-density splits options. |\n\n*** ** * ** ***\n\nBase data representing how an FULL_APK should be split for a given dimension (density, abi).\n\nSummary\n-------\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [exclude](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/Split#exclude(kotlin.Array))`(vararg excludes: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Excludes some values |\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [include](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/Split#include(kotlin.Array))`(vararg includes: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` Includes some values |\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [reset](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/Split#reset())`()` Resets the list of included split configuration. |\n\n| ### Public properties ||\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isEnable](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/Split#isEnable()) Whether to split in this dimension. |\n\nPublic functions\n----------------\n\n### exclude\n\n```\n@Incubating\nfun exclude(vararg excludes: String): Unit\n```\n\nExcludes some values \n\n### include\n\n```\n@Incubating\nfun include(vararg includes: String): Unit\n```\n\nIncludes some values \n\n### reset\n\n```\n@Incubating\nfun 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 to split on, rather than excluding from the default list.\n\nPublic properties\n-----------------\n\n### isEnable\n\n```\nvar isEnable: Boolean\n```\n\nWhether to split in this dimension."]]