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

`cordova prepare` breaks plugins added by plugman

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Steps to reproduce:

      cordova platform add android
      plugman install --project platforms/android --platform android --plugin cordova-plugin-device
      stat platforms/android/assets/www/cordova_plugins.js
      [at this point everything is fine]
      cordova prepare android
      stat platforms/android/assets/www/cordova_plugins.js
      stat: platforms/android/assets/www/cordova_plugins.js: stat: No such file or directory
      plugman install --project platforms/android --platform android --plugin cordova-plugin-device
      Plugin "cordova-plugin-device" already installed on android.
      [At this point you can build your application, but won't have any plugins in it]

      How can someone overcome this situation? I want some plugins installed for specific platforms only and I don't want to fork existing plugins only to remove <android> section from plugin.xml

      plugman --version
      1.1.0
      cordova --version
      6.0.0
      cordova platform ls
      Installed platforms: android 5.1.0

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            vladimir.kotikov Vladimir Kotikov
            stevepn Istvan Tabanyi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment