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.

exclude

Collection of exclude patterns.

include

Collection of include patterns.

Methods

MethodDescription
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.

Set<String> exclude

Collection of exclude patterns.

Set<String> include

Collection of include patterns.

Method details

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.