Skip to content

Instantly share code, notes, and snippets.

@pratheepchowdhary
Created May 13, 2018 13:53
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 pratheepchowdhary/c8c15892435238b0dd4b5e9a9e542c7b to your computer and use it in GitHub Desktop.
Save pratheepchowdhary/c8c15892435238b0dd4b5e9a9e542c7b to your computer and use it in GitHub Desktop.
android {
splits {
abi {
def isReleaseBuild = false
gradle.startParameter.taskNames.find {
// Enable split for release builds in different build flavors
// (assemblePaidRelease, assembleFreeRelease, etc.).
if (it ==~ /:app:assemble.*Release/) {
isReleaseBuild = true
return true // break
}
return false // continue
}
// Enables building multiple APKs per ABI.
enable isReleaseBuild
//...
}
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment