Google is committed to advancing racial equity for Black communities. See how.

ApplicationBuildFeatures

@Incubating interface ApplicationBuildFeatures : BuildFeatures
com.android.build.api.dsl.ApplicationBuildFeatures

A list of build features that can be disabled or enabled in an Android Application project.

Summary

Properties

abstract Boolean?

Flag to enable Data Binding.

abstract Boolean?

Flag to enable Machine Learning Model Binding.

Inherited properties

Properties

dataBinding

abstract var dataBinding: Boolean?

Flag to enable Data Binding.

Setting the value to null resets to the default value. Default value is false.

You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.databinding=true in the gradle.properties file at the root project of your build.

More information about this feature at: TBD

mlModelBinding

abstract var mlModelBinding: Boolean?

Flag to enable Machine Learning Model Binding.

Setting the value to null resets to the default value. Default value is false.

You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.mlmodelbinding=true in the gradle.properties file at the root project of your build.

More information about this feature at: TBD