From 319da7c11c7429e8494bb5688cc314ee030686e0 Mon Sep 17 00:00:00 2001 From: Matthieu <24-artectrex@users.noreply.shinice.net> Date: Fri, 1 Mar 2024 16:32:39 +0100 Subject: [PATCH] Split apks into ABIs to make them smaller --- app/build.gradle | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index 20fbd587..7be4aee0 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -18,6 +18,31 @@ android { coreLibraryDesugaringEnabled true } + splits { + + // Configures multiple APKs based on ABI. + abi { + + // Enables building multiple APKs per ABI. + enable true + + // By default all ABIs are included, so use reset() and include to specify that we only + // want APKs for "x86", "x86_64", "arm64-v8a" and "armeabi-v7a". + + // Resets the list of ABIs for Gradle to create APKs for to none. + reset() + + // Specifies a list of ABIs for Gradle to create APKs for. + include "x86", "x86_64", "arm64-v8a", "armeabi-v7a" + + // Specifies that we don't want to also generate a universal APK that includes all ABIs. + universalApk false + } + + } + + + androidResources { generateLocaleConfig true }