Skip to content

Commit

Permalink
make useEmbeddedDex compatible with app bundles
Browse files Browse the repository at this point in the history
The previous approach taken from the official Android documentation is
incompatible with app bundle apk generation.
  • Loading branch information
thestinger committed Oct 21, 2022
1 parent 4d98ac5 commit fe7cd70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,15 @@ android {
}

packagingOptions {
dex {
useLegacyPackaging = false
}
resources.excludes.addAll(listOf(
"org/bouncycastle/pqc/**.properties",
"org/bouncycastle/x509/**.properties",
))
}

aaptOptions {
noCompress("dex")
}
}

dependencies {
Expand Down

0 comments on commit fe7cd70

Please sign in to comment.