Created
May 2, 2017 00:36
-
-
Save tosinonikute/4d64213c3aa1cd698cd3fc31c20ed2bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APK splits allow developers to build multiple APKs for different screen sizes and ABIs. Enabling APK splits ensures that the minimum amount of files required to support a particular device are packaged into an APK. | |
The following snippet shows an example build.gradle with APK splits enabled. | |
``` | |
apply plugin: 'com.android.application' | |
android { | |
// Specify that we want to split up the APK based on ABI | |
splits { | |
abi { | |
// Enable ABI split | |
enable true | |
// Clear list of ABIs | |
reset() | |
// Specify each architecture currently supported by the Voice SDK | |
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64" | |
// Specify that we do not want an additional universal SDK | |
universalApk false | |
} | |
} | |
} | |
``` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment