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

Missing plugins in PlatformJson after restore

    XMLWordPrintableJSON

Details

    Description

      My project has both Android and iOS platforms, and sometimes when I run cordova prepare it installs everything properly for Android, and installs the plugin files for iOS but leaves the ios.json file mostly empty.

      It turns out we're incredibly inefficient with restoring platforms and plugins. The entire process looks something like this:

      Cordova Prepare
        restore Android
          Android install new plugins
          Android prepare
        restore iOS
          iOS install new plugins
          iOS prepare
        prepare Android
        prepare iOS
        restore Plugins
          add plugin
          add plugin
          ...
      

      Rather than preparing when we add the platform and then preparing again after all the platforms are added, it would be ideal to add the platforms and then do a single prepare at the end.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dpogue Darryl Pogue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: