feat: add useLegacyPackaging to reduce APK size

Enable legacy packaging for native libraries to compress .so files
in APK, reducing build size as in pre-Flutter 3.35.1 versions
This commit is contained in:
Moustapha Kodjo Amadou 2025-09-01 10:54:39 +01:00
parent 4608c3972a
commit 5200c2900d

View file

@ -58,6 +58,12 @@ android {
versionName = flutter.versionName
}
packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']