# Bundle

# Bundle

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


```
interface Bundle
```

<br />

*** ** * ** ***

DSL object for configuring the Android Application Bundle

This is accessed via [ApplicationExtension.bundle](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/ApplicationExtension#bundle(kotlin.Function1))

## Summary

|                             ### Public functions                             |
|------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [abi](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#abi(kotlin.Function1))`(action: `[BundleAbi](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleAbi)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                                                                                                                                                  |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [aiModelVersion](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#aiModelVersion(kotlin.Function1))`(action: `[BundleAiModelVersion](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleAiModelVersion)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                              |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [codeTransparency](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#codeTransparency(kotlin.Function1))`(action: `[BundleCodeTransparency](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleCodeTransparency)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                      |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [countrySet](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#countrySet(kotlin.Function1))`(action: `[BundleCountrySet](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleCountrySet)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                              |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [density](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#density(kotlin.Function1))`(action: `[BundleDensity](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleDensity)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                                                                                                                                  |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) [deviceGroup](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#deviceGroup(kotlin.Function1))`(action: `[BundleDeviceGroup](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleDeviceGroup)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                          |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html) ~~[deviceTier](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#deviceTier(kotlin.Function1))~~`(action: `[BundleDeviceTier](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleDeviceTier)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)` **This function is deprecated.** Use deviceGroup instead |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [language](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#language(kotlin.Function1))`(action: `[BundleLanguage](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleLanguage)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [storeArchive](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#storeArchive(kotlin.Function1))`(action: `[BundleStoreArchive](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleStoreArchive)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [texture](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#texture(kotlin.Function1))`(action: `[BundleTexture](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleTexture)`.() `->` `[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`)`                                                                                                                                                                  |

|                                                          ### Public properties                                                          |
|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [BundleAbi](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleAbi)                           | [abi](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#abi())                                                                        |
| [BundleAiModelVersion](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleAiModelVersion)     | [aiModelVersion](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#aiModelVersion())                                                  |
| [BundleCodeTransparency](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleCodeTransparency) | [codeTransparency](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#codeTransparency())                                              |
| [BundleCountrySet](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleCountrySet)             | [countrySet](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#countrySet())                                                          |
| [BundleDensity](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleDensity)                   | [density](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#density())                                                                |
| [BundleDeviceGroup](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleDeviceGroup)           | [deviceGroup](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#deviceGroup())                                                        |
| [RegularFileProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFileProperty.html)                             | [deviceTargetingConfig](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#deviceTargetingConfig())                                    |
| [BundleDeviceTier](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleDeviceTier)             | [deviceTier](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#deviceTier()) **This property is deprecated.** Use deviceGroup instead |
| [DirectoryProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/file/DirectoryProperty.html)                                 | [integrityConfigDir](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#integrityConfigDir())                                          |
| [BundleLanguage](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleLanguage)                 | [language](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#language())                                                              |
| [BundleStoreArchive](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleStoreArchive)         | [storeArchive](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#storeArchive())                                                      |
| [BundleTexture](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/BundleTexture)                   | [texture](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#texture())                                                                |

## Public functions

### abi

Added in 4.2.0  

```
fun abi(action: BundleAbi.() -> Unit): Unit
```  

### aiModelVersion

Added in 8.7.0  

```
@Incubating
fun aiModelVersion(action: BundleAiModelVersion.() -> Unit): Unit
```  

### codeTransparency

Added in 7.1.0  

```
@Incubating
fun codeTransparency(action: BundleCodeTransparency.() -> Unit): Unit
```  

### countrySet

Added in 8.1.0  

```
@Incubating
fun countrySet(action: BundleCountrySet.() -> Unit): Unit
```  

### density

Added in 4.2.0  

```
fun density(action: BundleDensity.() -> Unit): Unit
```  

### deviceGroup

Added in 8.10.1  

```
@Incubating
fun deviceGroup(action: BundleDeviceGroup.() -> Unit): Unit
```  

### deviceTier

Added in 4.2.0  
Deprecated in 8.10.1  

```
@Incubating
fun [deviceTier](https://developer.android.com/reference/tools/gradle-api/9.0/com/android/build/api/dsl/Bundle#deviceTier(kotlin.Function1))(action: BundleDeviceTier.() -> Unit): Unit
```
| **This function is deprecated.**   
Use deviceGroup instead  

### language

Added in 4.2.0  

```
fun language(action: BundleLanguage.() -> Unit): Unit
```  

### storeArchive

Added in 7.3.0  

```
fun storeArchive(action: BundleStoreArchive.() -> Unit): Unit
```  

### texture

Added in 4.2.0  

```
fun texture(action: BundleTexture.() -> Unit): Unit
```  

## Public properties

### abi

Added in 4.2.0  

```
val abi: BundleAbi
```  

### aiModelVersion

Added in 8.7.0  

```
val aiModelVersion: BundleAiModelVersion
```  

### codeTransparency

Added in 7.1.0  

```
val codeTransparency: BundleCodeTransparency
```  

### countrySet

Added in 8.1.0  

```
val countrySet: BundleCountrySet
```  

### density

Added in 4.2.0  

```
val density: BundleDensity
```  

### deviceGroup

Added in 8.10.1  

```
val deviceGroup: BundleDeviceGroup
```  

### deviceTargetingConfig

Added in 8.10.1  

```
val deviceTargetingConfig: RegularFileProperty
```  

### deviceTier

Added in 4.2.0  
Deprecated in 8.10.1  

```
val deviceTier: BundleDeviceTier
```
| **This property is deprecated.**   
Use deviceGroup instead  

### integrityConfigDir

Added in 7.2.0  

```
val integrityConfigDir: DirectoryProperty
```  

### language

Added in 4.2.0  

```
val language: BundleLanguage
```  

### storeArchive

Added in 7.2.0  

```
val storeArchive: BundleStoreArchive
```  

### texture

Added in 4.2.0  

```
val texture: BundleTexture
```