Split

Added in 7.1.0

interface Split

Known direct subclasses
AbiSplit

DSL object for configuring per-abi splits options.

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 APK should be split for a given dimension (density, abi).

Summary

Public functions

Unit
exclude(vararg excludes: String)

Excludes some values

Unit
include(vararg includes: String)

Includes some values

Unit

Resets the list of included split configuration.

Public properties

Boolean

Whether to split in this dimension.

Public functions

exclude

Added in 7.1.0
fun exclude(vararg excludes: String): Unit

Excludes some values

include

Added in 7.1.0
fun include(vararg includes: String): Unit

Includes some values

reset

Added in 7.1.0
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

Added in 7.1.0
var isEnableBoolean

Whether to split in this dimension.