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

Get rid of fetch.json and <platform.json> in plugins folders

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • cordova-lib
    • None

    Description

      In a cordova project you define the plugins in config.xml which kind of serves as the project file.

      Since some time now it also contains the plugins the project is using.
      I wonder why there is still a /plugins/fetch.json and a /plugins/PLATFORM.json for each installed platform.
      Both somehow list plugins in a redundant way, since the same information is already in config.xml

      More so, the platform JSON contains PACKAGE_NAME that references to the config.xml widget id. Why? Its not like we can have multiple app IDs specified.

      I propose to get rid of those files and make `cordova prepare` actually updating the VARIABLES defined in config.xml plugins. Because at the moment the only way to CHANGE a var in config.xml and see this change being reflected in the built app is to remove the platform and re-add it.
      This is so error prone.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pke Philipp Kursawe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: