Add export setting to specify whether the native libraries should be compressed for the gradle build

This commit is contained in:
Fredia Huya-Kouadio 2024-02-15 17:43:32 -08:00
parent a9bb8509f2
commit a69a585c91
4 changed files with 43 additions and 0 deletions

View file

@ -116,6 +116,14 @@ android {
if (shouldNotStrip()) {
doNotStrip '**/*.so'
}
jniLibs {
// Setting this to true causes AGP to package compressed native libraries when building the app
// For more background, see:
// - https://developer.android.com/build/releases/past-releases/agp-3-6-0-release-notes#extractNativeLibs
// - https://stackoverflow.com/a/44704840
useLegacyPackaging shouldUseLegacyPackaging()
}
}
signingConfigs {