Braden Shepherdson created CB-5379:
--------------------------------------

             Summary: Runtime discovery of installed plugins
                 Key: CB-5379
                 URL: https://issues.apache.org/jira/browse/CB-5379
             Project: Apache Cordova
          Issue Type: New Feature
            Reporter: Braden Shepherdson
            Assignee: Braden Shepherdson
             Fix For: 3.3.0


We want Cordova apps to be able to query what plugins (and versions) are 
installed at runtime.

Plugman is now injecting a tag of the kind:

{code:xml}
<plugins>
  <plugin id="org.apache.cordova.file" version="0.2.5" />
  <plugin id="org.apache.cordova.file-transfer" version="0.3.4" />
</plugins>
{code}

into the platform's config.xml. Each platform should be parsing this and 
exposing it to native plugins ({{PluginManager.getPluginList()}}, or something 
like that) and exposing it to Javascript via the following {{exec}} call:

{code:javascript}
cordova.exec('CordovaPlugins', 'getPluginList', [], ...);
{code}

The format of the exec call's response is a JS object whose keys are plugin IDs 
and whose values are their versions.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to