Skip to content

Instantly share code, notes, and snippets.

View MPLew-is's full-sized avatar

Mike Lewis MPLew-is

View GitHub Profile
@MPLew-is
MPLew-is / emulator.gradle
Last active April 4, 2021 15:16
Run emulator, install APK, and launch Android app with gradle tasks
//Launch emulator in background, using configured AVD name
task emulate() {
def device = null
//Check for command-line parameter for device, which overrides any configuration
if (project.hasProperty('emulator.device'))
{
device = project.property('emulator.device')
}