Skip to content

Commit

Permalink
app: enable split apk builds
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
evelikov authored and Leonid Pliushch committed Feb 3, 2021
1 parent fa5117a commit a7eb173
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@ android {
cFlags "-std=c11", "-Wall", "-Wextra", "-Werror", "-Os", "-fno-stack-protector", "-Wl,--gc-sections"
}
}
}

splits {
abi {
enable true

ndk {
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
reset ()
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
}

}
Expand Down

0 comments on commit a7eb173

Please sign in to comment.