# DexPackagingOptions

# DexPackagingOptions

<br />

```
interface DexPackagingOptions
```

<br />

*** ** * ** ***

Defines an APK variant's packaging options for dex files.

## Summary

|                                                                                                                                                                                                   ### Public properties                                                                                                                                                                                                    ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Property](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/Property.html)`<`[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`>` | [useLegacyPackaging](https://developer.android.com/reference/tools/gradle-api/7.4/com/android/build/api/variant/DexPackagingOptions#useLegacyPackaging()) Whether to use the legacy convention of compressing all dex files in the APK. |

## Public properties

### useLegacyPackaging

```
val useLegacyPackaging: Property<Boolean>
```

Whether to use the legacy convention of compressing all dex files in the APK.

This property does not affect dex file compression in APKs produced from app bundles.