# LibraryBuildFeatures

# LibraryBuildFeatures

<br />

```
interface LibraryBuildFeatures : BuildFeatures
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                     ### Public properties                                                                                                                                     ||
|---------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [androidResources](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#androidResources()) Flag to disable Android resource processing.        |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [dataBinding](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#dataBinding()) Flag to enable Data Binding.                                  |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [mlModelBinding](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#mlModelBinding()) Flag to enable Machine Learning Model Binding.          |
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`?` | [prefabPublishing](https://developer.android.com/reference/tools/gradle-api/7.2/com/android/build/api/dsl/LibraryBuildFeatures#prefabPublishing()) Flag to enable generating Prefab packages for AARs. |

|                                                                                                                                                                                                                                                                                         ### Inherited functions                                                                                                                                                                                                                                                                                         ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| From class[ExtensionAware](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html) |--------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------| | [ExtensionContainer](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionContainer.html) | [getExtensions](https://docs.gradle.org/current/javadoc/org/gradle/api/plugins/ExtensionAware.html#getExtensions--)`()` | |

## Public properties

### androidResources

```
val androidResources: Boolean?
```

Flag to disable Android resource processing.

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.library.defaults.buildfeatures.androidresources=false`in the gradle.properties file at the root project of your build.

More information about this feature at: TBD  

### dataBinding

```
val 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

```
val 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  

### prefabPublishing

```
val prefabPublishing: Boolean?
```

Flag to enable generating Prefab packages for AARs.

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.prefabPublishing=true`in the`gradle.properties`file at the root project of your build.

More information about this feature at: https://developer.android.com/studio/build/native-dependencies