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.

auto

Whether the build system should determine the splits based on the "language-*" folders in the resources.

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

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.

boolean auto

Whether the build system should determine the splits based on the "language-*" folders in the resources.

If the auto mode is set to true, the include list will be ignored.

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.