From a50200772a1b352e30e625c518b904341ea15df1 Mon Sep 17 00:00:00 2001 From: Mateus Rodrigues Costa Date: Sat, 12 Oct 2024 14:18:33 -0300 Subject: [PATCH] Improve uncompressed dex explanation --- app/build.gradle.kts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 5d2f282..f17e512 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -77,9 +77,10 @@ android { } packaging { dex { - // This is false starting with minSdk >= 28, but I want that behavior with minSdk 26 - // Uncompressed DEX should increase final APK size, but it potentially brings storage savings - // and performance improvements on the installed device + // This is set to false starting with minSdk >= 28, but I want uncompressed DEX files with minSdk 26 + // According to https://developer.android.com/build/releases/past-releases/agp-4-2-0-release-notes#dex-files-uncompressed-in-apks-when-minsdk-=-28-or-higher: + // + // > This causes an increase in APK size, but it results in a smaller installation size on the device, and the download size is roughly the same. // // Currently this makes the APK ~1MB heavier //