Split

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

Summary

Public methods

abstract void
exclude(@NonNull String excludes)

Excludes some values

abstract void
include(@NonNull String includes)

Includes some values

abstract boolean

Whether to split in this dimension.

abstract void

Resets the list of included split configuration.

abstract void
setEnable(boolean isEnable)

Whether to split in this dimension.

Public methods

exclude

abstract void exclude(@NonNull String excludes)

Excludes some values

include

abstract void include(@NonNull String includes)

Includes some values

isEnable

abstract boolean isEnable()

Whether to split in this dimension.

reset

abstract void reset()

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.

setEnable

abstract void setEnable(boolean isEnable)

Whether to split in this dimension.