Skip to content

Commit

Permalink
Set Uncompressed DEX build option
Browse files Browse the repository at this point in the history
Set packaging.dex.useLegacyPackaging to false
  • Loading branch information
MateusRodCosta committed Oct 11, 2024
1 parent 3a9fab0 commit 874fda6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ android {
compose = true
}
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
//
// Currently this makes the APK ~1MB heavier
//
useLegacyPackaging = false
}
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
Expand Down

0 comments on commit 874fda6

Please sign in to comment.