Add export setting to specify whether the native libraries should be compressed for the gradle build
This commit is contained in:
parent
a9bb8509f2
commit
a69a585c91
4 changed files with 43 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue