app: enable split apk builds

Currently we build a single APK which handles the four supported ABIs.

Therefore each user, downloads 50-75% more than they need - adding
towards both client/server-side network as well as device storage.

Use a split APK approach - it costs nothing from build and server-side
storage POV.

Note: We're removing ndk:abiFilters - they're incompatible/superseded by
the splits:abi:include list.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
This commit is contained in:
Emil Velikov
2021-01-23 20:05:07 +00:00
committed by Leonid Pliushch
parent fa5117a098
commit a7eb173178

View File

@@ -25,9 +25,14 @@ android {
cFlags "-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections" cFlags "-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections"
} }
} }
}
ndk { splits {
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' abi {
enable true
reset ()
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
} }
} }