# Split

# Split

<br />

```
interface Split
```

<br />

Known direct subclasses  
[AbiSplit](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/AbiSplit),[DensitySplit](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/DensitySplit)  

|---------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AbiSplit](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/AbiSplit)         | DSL object for configuring per-abi splits options.                                                                                                                                                               |
| [DensitySplit](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/DensitySplit) | **This interface is deprecated.**Density-based apk split feature is deprecated and will be removed in AGP 9.0.Use Android App Bundle (https://developer.android.com/guide/app-bundle)to generate optimized APKs. |

*** ** * ** ***

Base data representing how an FULL_APK should be split for a given dimension (density, abi).

## Summary

|                                                                                                                                                          ### Public functions                                                                                                                                                           ||
|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [exclude](https://developer.android.com/reference/tools/gradle-api/8.1/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 |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [include](https://developer.android.com/reference/tools/gradle-api/8.1/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 |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [reset](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/Split#reset())`()` Resets the list of included split configuration.                                                                                        |

|                                                                                                            ### Public properties                                                                                                            ||
|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isEnable](https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/Split#isEnable()) Whether to split in this dimension. |

## Public functions

### exclude

```
fun exclude(vararg excludes: String): Unit
```

Excludes some values  

### include

```
fun include(vararg includes: String): Unit
```

Includes some values  

### reset

```
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

### isEnable

```
var isEnable: Boolean
```

Whether to split in this dimension.