From e203f7ae4cc5603fbf0d9d2418e1a618f139bf4e Mon Sep 17 00:00:00 2001 From: Tae Hanazono Date: Fri, 14 Dec 2018 23:40:10 +0800 Subject: [PATCH] Modify LOVE build.gradle Again, two changes. First change is to add "arm64-v8a" to NDK abiFilters. This is needed to really generate ARM64 binaries inside the APK. The second change is to exclude libSDL2.so from the resulting APK. Since LOVE statically links with SDL2, then there's no reason to have libSDL2.so lying around inside the APK. It's also save the APK size a little bit. --- love/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/love/build.gradle b/love/build.gradle index 995c4724..df732823 100644 --- a/love/build.gradle +++ b/love/build.gradle @@ -21,7 +21,7 @@ android { ndk { // Specifies the ABI configurations of your native // libraries Gradle should build and package with your APK. - abiFilters 'armeabi-v7a' + abiFilters 'armeabi-v7a', 'arm64-v8a' } } buildTypes { @@ -45,6 +45,10 @@ android { lintOptions { abortOnError false } + packagingOptions { + exclude 'lib/arm64-v8a/libSDL2.so' + exclude 'lib/armeabi-v7a/libSDL2.so' + } } dependencies {