# BundleConfig

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/BundleConfig.kt+class:com.android.build.api.variant.BundleConfig) Added in 7.1.0


```
@Incubating
interface BundleConfig
```

<br />

*** ** * ** ***

Information related to the actions creating a bundle (.aab) file for the variant.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BundleConfig#addMetadataFile(kotlin.String,org.gradle.api.provider.Provider)(metadataDirectory: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, file: https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html<https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html>)` Add a metadata file to the bundle (.aab) file. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/CodeTransparency` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/variant/BundleConfig#codeTransparency()` Settings associated with the code transparency feature in bundles. |

## Public functions

### addMetadataFile

Added in 7.2.0

```
fun addMetadataFile(metadataDirectory: String, file: Provider<RegularFile>): Unit
```

Add a metadata file to the bundle (.aab) file. The file will be added under the BUNDLE-METADATA folder.

| Parameters |
|---|---|
| `metadataDirectory: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | the directory below BUNDLE-METADATA where the file should be stored. |
| `file: https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html<https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html>` | the `https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Provider.html` of `https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFile.html` that can be wired from a `https://docs.gradle.org/current/javadoc/org/gradle/api/Task.html` output or an existing file in the project directory. |

## Public properties

### codeTransparency

Added in 7.1.0

```
val codeTransparency: CodeTransparency
```

Settings associated with the code transparency feature in bundles. Initialized from the corresponding DSL elements.