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

plugin_loader.js and path issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-js, cordova-plugman
    • None

    Description

      Blackberry dudes added a commit to plugin_loader.js that made the path to cordova_plugins.js absolute. This broke plugin loading for ios + android. See https://github.com/apache/cordova-js/commit/8d59461c6f796f2c88a0eae2467cc663897ccce9

      I reverted that commit with https://github.com/apache/cordova-js/commit/757fa3c93d078fc9d1e393e671f81c6ed237bc06

      It works again on Android and iOS. Issue that arises now is that cordova.js expects cordova_plugins.json to be in the same directory as it. If you have cordova.js in a js directory and cordova_plugins.json exists in a directory above, the plugin will not load because it won't be able to find cordova_plugins.

      Can we reference cordova_plugins in a way that will work across platform?

      Attachments

        Activity

          People

            filmaj Filip Maj
            stevegill Steve Gill
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: