DSL object for configuring per-density splits options.
See APK Splits.
Type | Name and description |
---|---|
void |
compatibleScreens(String... sizes) Adds a new compatible screen. |
protected com.google.common.collect.ImmutableSet<String> |
getAllowedValues() |
Set<String> |
getCompatibleScreens() A list of compatible screens. |
protected Set<String> |
getDefaultValues() |
boolean |
isAuto() Returns whether to use the automatic discovery mechanism for supported languages (true) or the manual include list (false). |
boolean |
isStrict() TODO: Document. |
void |
setAuto(boolean auto) Sets whether the build system should determine the splits based on the "language-*" folders in the resources. |
void |
setCompatibleScreens(List<String> sizes) |
void |
setStrict(boolean strict) |
Methods inherited from class | Name |
---|---|
class SplitOptions |
exclude, getAllowedValues, getApplicableFilters, getDefaultValues, include, isEnable, reset, setEnable |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Adds a new compatible screen.
A list of compatible screens.
This will inject a matching <compatible-screens><screen ...>
node in the manifest. This is optional.
Returns whether to use the automatic discovery mechanism for supported languages (true) or the manual include list (false).
TODO: Document.
Sets 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.
auto
- true to automatically set the splits list based on the folders presence, false
to use the include list.