BuildFeatures
interface BuildFeatures : ExtensionAware
com.android.build.api.dsl.BuildFeatures |
A list of build features that can be disabled or enabled in an Android project.
This list applies to all plugin types.
Summary
Properties |
|
---|---|
abstract Boolean? |
Flag to enable AIDL compilation. |
abstract Boolean? |
Flag to enable/disable generation of the |
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. |
Properties
aidl
abstract var aidl: Boolean?
Flag to enable AIDL compilation.
Setting the value to null
resets to the default value.
Default value is true
.
You can override the default for this for all projects in your build by adding the line
android.defaults.buildfeatures.aidl=true
in the gradle.properties file at the root project of your build.
More information about this feature at: TBD
buildConfig
abstract var buildConfig: Boolean?
Flag to enable/disable generation of the BuildConfig
class.
Setting the value to null
resets to the default value.
Default value is true
.
You can override the default for this for all projects in your build by adding the line android.defaults.buildfeatures.buildconfig=true in the gradle.properties file at the root project of your build.
More information about this feature at: TBD
compose
abstract var compose: Boolean?
Flag to enable Compose feature.
Setting the value to null
resets to the default value
Default value is false
.
More information available about this feature at: TBD
prefab
abstract var prefab: Boolean?
Flag to enable/disable import of Prefab dependencies from AARs.
Setting the value to null
resets to the default value.
Default value is false
.
You can override the default for this in your module by setting android { buildFeatures { prefab true } } in the module's build.gradle file.
More information about this feature at: TBD
renderScript
abstract var renderScript: Boolean?
Flag to enable RenderScript compilation.
Setting the value to null
resets to the default value.
Default value is true
.
You can override the default for this for all projects in your build by adding the line
android.defaults.buildfeatures.renderscript=true
in the gradle.properties file at the root project of your build.
More information about this feature at: TBD
resValues
abstract var resValues: Boolean?
Flag to enable Resource Values generation.
Setting the value to null
resets to the default value.
Default value is true
.
You can override the default for this for all projects in your build by adding the line
android.defaults.buildfeatures.resvalues=true
in the gradle.properties file at the root project of your build.
More information about this feature at: TBD
shaders
abstract var shaders: Boolean?
Flag to enable Shader compilation.
Setting the value to null
resets to the default value.
Default value is true
.
You can override the default for this for all projects in your build by adding the line
android.defaults.buildfeatures.shaders=true
in the gradle.properties file at the root project of your build.
More information about this feature at: TBD
viewBinding
abstract var viewBinding: Boolean?
Flag to enable View 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.viewbinding=true
in the gradle.properties file at the root project of your build.
More information about this feature at: TBD