Skip to content

Instantly share code, notes, and snippets.

@tosinonikute
Created May 2, 2017 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tosinonikute/4d64213c3aa1cd698cd3fc31c20ed2bd to your computer and use it in GitHub Desktop.
Save tosinonikute/4d64213c3aa1cd698cd3fc31c20ed2bd to your computer and use it in GitHub Desktop.
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