Skip to content

Commit a7eb173

Browse files
evelikovLeonid Pliushch
authored andcommitted
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 <[email protected]>
1 parent fa5117a commit a7eb173

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app/build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ android {
2525
cFlags "-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections"
2626
}
2727
}
28+
}
29+
30+
splits {
31+
abi {
32+
enable true
2833

29-
ndk {
30-
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
34+
reset ()
35+
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
3136
}
3237

3338
}

0 commit comments

Comments
 (0)