Skip to content

Instantly share code, notes, and snippets.

@JakeWharton
Created March 29, 2015 06:34
Show Gist options
  • Save JakeWharton/64de0e5600fa92d05fa4 to your computer and use it in GitHub Desktop.
Save JakeWharton/64de0e5600fa92d05fa4 to your computer and use it in GitHub Desktop.
A Gradle task for installing all application variants at once. Placed in the public domain.
def installAll = tasks.create('installAll')
installAll.description = 'Install all applications.'
android.applicationVariants.all { variant ->
installAll.dependsOn(variant.install)
// Ensure we end up in the same group as the other install tasks.
installAll.group = variant.install.group
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment