# 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 `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/ApplicationExtension#bundle(kotlin.Function1)`

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

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleAbi` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#abi()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleAiModelVersion` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#aiModelVersion()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleCodeTransparency` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#codeTransparency()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleCountrySet` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#countrySet()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleDensity` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#density()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleDeviceGroup` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#deviceGroup()` |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/file/RegularFileProperty.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#deviceTargetingConfig()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleDeviceTier` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#deviceTier()` **This property is deprecated.** Use deviceGroup instead |
| `https://docs.gradle.org/current/javadoc/org/gradle/api/file/DirectoryProperty.html` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#integrityConfigDir()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleLanguage` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#language()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleStoreArchive` | `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/Bundle#storeArchive()` |
| `https://developer.android.com/reference/tools/gradle-api/9.6/com/android/build/api/dsl/BundleTexture` | `https://developer.android.com/reference/tools/gradle-api/9.6/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.6/com/android/build/api/dsl/Bundle#deviceTier(kotlin.Function1))(action: BundleDeviceTier.() -> Unit): Unit
```

> [!CAUTION]
> **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
```

> [!CAUTION]
> **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
```