DynamicFeatureBuildFeatures

public interface DynamicFeatureBuildFeatures extends BuildFeatures


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

Summary

Public methods

abstract Boolean

Flag to enable Data Binding.

abstract Boolean

Flag to enable Machine Learning Model Binding.

abstract void
setDataBinding(Boolean dataBinding)

Flag to enable Data Binding.

abstract void
setMlModelBinding(Boolean mlModelBinding)

Flag to enable Machine Learning Model Binding.

Inherited methods

From com.android.build.api.dsl.BuildFeatures
abstract Boolean

Flag to enable AIDL compilation.

abstract Boolean

Flag to enable/disable generation of the BuildConfig class.

abstract Boolean

Flag to enable Compose feature.

abstract Boolean

Flag to enable/disable import of Prefab dependencies from AARs.

abstract Boolean

Flag to enable RenderScript compilation.

abstract Boolean

Flag to enable Resource Values generation.

abstract Boolean

Flag to enable Shader compilation.

abstract Boolean

Flag to enable View Binding.

abstract void

Flag to enable AIDL compilation.

abstract void
setBuildConfig(Boolean buildConfig)

Flag to enable/disable generation of the BuildConfig class.

abstract void

Flag to enable Compose feature.

abstract void

Flag to enable/disable import of Prefab dependencies from AARs.

abstract void
setRenderScript(Boolean renderScript)

Flag to enable RenderScript compilation.

abstract void
setResValues(Boolean resValues)

Flag to enable Resource Values generation.

abstract void

Flag to enable Shader compilation.

abstract void
setViewBinding(Boolean viewBinding)

Flag to enable View Binding.

From org.gradle.api.plugins.ExtensionAware

Public methods

getDataBinding

abstract Boolean getDataBinding()

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

getMlModelBinding

abstract Boolean getMlModelBinding()

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

setDataBinding

abstract void setDataBinding(Boolean dataBinding)

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

setMlModelBinding

abstract void setMlModelBinding(Boolean mlModelBinding)

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