features

suspend fun features(block: FeaturesBuilder.() -> Unit)(source)

Registers multiple features using a nested DSL block.

This is the preferred way to define features inline using the DSL. Each feature defined inside the block is built and registered sequentially.

Example:

features {
feature("beta-feature") {
isEnabled = true
}

feature("experimental-ui") {
group = "experimental"
}
}

Parameters

block

DSL block used to define one or more features