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

Cordova breaking iOS plugins

    XMLWordPrintableJSON

Details

    Description

      From 1.4 to 1.5, the namespace was changed from PhoneGap to Cordova which was breaking all of the existing plugins. I eventually provided a shim class but it was too late to stop the pain. Then in Javascript only Cordova was changed to cordova, breaking the iOS plugins yet again. I noticed in cordova (1.6.0) JS:

      if (!window.PhoneGap) {
      window.PhoneGap = cordova;
      }

      This should have been done for Cordova like:
      if (!Cordova) {
      Cordova = cordova;
      }

      Yes we should be deprecating the old namespaces for removal in another major release. Any API changes made before a major release should be made with a workaround, to be deprecated, and tested with some plugins before shipping.

      Attachments

        Activity

          People

            filmaj Filip Maj
            chbrody chbrody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified