Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2980

Add a ./cordova/lib/install-emulator project-level helper script

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • cordova-cli
    • None

    Description

      install-emulator [--target=id]
      

      Installs a build of the app to an available emulator.

      If --target is specified, attempts to install the app to the emulator identified by id. If the attempt fails, the script will error out with an appropriate error message and exit with code 2.

      If no --target is specified, follows this multi-device flow:

      1. Are there any actual emulators available, i.e. started/running? (use list-started-emulators CB-2964 to determine this). If so, target the first one, otherwise continue.
      2. Are there any emulator images available to start? (use list-emulator-images CB-2947 to determine this). If so, call start-emulator <id> [TODO: issue ref] of the first available image, wait for it to become ready, then target it. If no, continue.
      3. Print an error message and exit with code 2.

      If the application is not compiled/built yet, the script will error out with an appropriate error message and exit with code 2.

      Attachments

        Issue Links

          Activity

            People

              lorin.beer Lorin Beer
              filmaj Filip Maj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: