Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2988 Add a ./cordova/lib/install-device project-level helper script
  3. CB-2989

Add a ./cordova/lib/install-device project-level helper script to Android

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.7.0
    • cordova-android
    • None

    Description

      install-device [--target=id]
      

      Installs a build of the app to an available device.

      If --target is specified, attempts to install the app to the device 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 devices available, i.e. connected? (use list-devices CB-2972 to determine this). If so, target the first one, otherwise continue.
      2. 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.

      If this functionality is not implementable, print out an appropriate error message and exit with code 1.

      Attachments

        Activity

          People

            bennmapes Benn
            filmaj Filip Maj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: