Created
March 15, 2021 09:25
-
-
Save liminal/976917e10d5066305b7071e28b5d970b to your computer and use it in GitHub Desktop.
Add tasks to uninstall apks
This file contains hidden or 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
// Add helper tasks for uninstalling the apk from devices/emulators | |
android.applicationVariants.all { variant -> | |
tasks.create(name: "uninstall${variant.name.capitalize()}Apk", type: Exec, group: "uninstall") { | |
ignoreExitValue = true | |
commandLine android.getAdbExe(), 'uninstall', variant.applicationId | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment