Git Product home page Git Product logo

gradle-emulator-tasks's Introduction

Gradle Emulator Tasks

This repository includes gradle tasks that can be used to control android emulators.

Commands

Android Pre-TestCommands

the following are composite commands are the commands to be used when starting an emulator for a test

launchAndroidMEmulator - Check if required emulator imgae is installed, install if not, create emulator from image, start emulator ANDROID-M
launchAndroidNEmulator - Check if required emulator imgae is installed, install if not, create emulator from image, start emulator ANDROID-N
launchAndroidOEmulator - Check if required emulator imgae is installed, install if not, create emulator from image, start emulator ANDROID-O

Android Sub command Tasks

the following are individual commands that are used together in the composite commands above

createAndRunEmulatorAndroidM - Starts emulator, creates and starts emulator if it does not exist ANDROID-M
createAndRunEmulatorAndroidN - Starts emulator, creates and starts emulator if it does not exist ANDROID-N
createAndRunEmulatorAndroidO - Starts emulator, creates and starts emulator if it does not exist ANDROID-O
installSDKPackages - Install missing emulator packages
listEmulators - lists all emulators on host machine
listInstalledSDKPackages - List all installed android sdk packages

Maintainence

In order to update the android images to new version edit the following code:

String[] androidImageN = ["ANDROID-O", "system-images;android-27;google_apis_playstore;x86"]
String[] androidImageNMinus1 = ["ANDROID-N", "system-images;android-25;google_apis_playstore;x86"]
String[] androidImageNMinus2 = ["ANDROID-M", "system-images;android-23;google_apis;x86"]

gradle-emulator-tasks's People

Watchers

Thomas Nolan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.