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

Support for restoring plugin "preferences" in "restore" CLI command

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Implemented
    • 3.5.0
    • None

    Description

      Thanks for great improvement having the plugin list in config.xml!

      However it will be great if "preferences" passed to plugman as variables could be saved there to.

      Like:

      <feature name="Custom URL scheme">
              <param name="id" value="nl.x-services.plugins.launchmyapp" />
              <param name="url" value="https://github.com/EddyVerbruggen/LaunchMyApp-PhoneGap-Plugin.git" />
              <preference name="URL_SCHEME" value="VERBOSE"/>
          </feature>
      

      I've made a rather simple fix for that in this commit

      The code also has a feature of setting and using a plugin URL to install.
      Two more things required:

      1. To be able to specify preferences per plugin to avoid possible name conflict - that involves installing plugins one-by-one rather than in batch as far as I understand the 'plugin("add")'
      2. Add support to reinstalling plugins with respect to preferences on platform add - did not dig the code yet.

      It would be nice if someone comment on the issue - am I right or missing something already done. Also I can fullfill the requirement myself and issue a pull request if the feature seems handy.

      Attachments

        Activity

          People

            Unassigned Unassigned
            motorro Nikolai Kotchetkov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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