cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Braden Shepherdson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-5379) Runtime discovery of installed plugins
Date Wed, 13 Nov 2013 19:29:22 GMT
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)

Mime
View raw message