DensitySplitOptions

DSL object for configuring per-density splits options.

See APK Splits.

Properties

PropertyDescription
applicableFilters

Returns a list of all applicable filters for this dimension.

compatibleScreens

A list of compatible screens.

enable

Whether to split in this dimension.

Methods

MethodDescription
exclude(excludes)

excludes some values

include(includes)

includes some values

reset()

Resets the list of included split configuration.

Script blocks

No script blocks

Property details

Set<String> applicableFilters (read-only)

Returns a list of all applicable filters for this dimension.

The list can return null, indicating that the no-filter option must also be used.

Set<String> compatibleScreens

A list of compatible screens.

This will inject a matching <compatible-screens><screen ...> node in the manifest. This is optional.

boolean enable

Whether to split in this dimension.

Method details

void exclude(String... excludes)

excludes some values

void include(String... includes)

includes some values

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.