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

Adding plugin tag to config.xml w/o spec attribute does not install the plugin

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-lib

      Description

      (only tested on android)

      when my config.xml contains a plugin element with no spec attribute, it is not added to the android platform. but also no error is reported. for example:
      <plugin name="cordova-plugin-whitelist" />
      vs
      <plugin name="cordova-plugin-whitelist" spec="1.0.0" />

      the former just logs:

           [exec] Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
      

      the later

           [exec] Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
           [exec] Fetching plugin "cordova-plugin-whitelist@1.0.0" via npm
           [exec] Installing "cordova-plugin-whitelist" for android
      

        Attachments

          Activity

            People

            • Assignee:
              vladimir.kotikov Vladimir Kotikov
              Reporter:
              tripod Tobias Bocanegra
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: