You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Braden Shepherdson (JIRA)" <ji...@apache.org> on 2014/01/15 18:06:19 UTC

[jira] [Resolved] (CB-5379) Runtime discovery of installed plugins

     [ https://issues.apache.org/jira/browse/CB-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Braden Shepherdson resolved CB-5379.
------------------------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 3.4.0)

We're not actually going to make this change anymore. It's been partially replaced with Javascript-side code as described above.

> Runtime discovery of installed plugins
> --------------------------------------
>
>                 Key: CB-5379
>                 URL: https://issues.apache.org/jira/browse/CB-5379
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Android, BlackBerry, FirefoxOS, iOS, Windows 8, WP7, WP8
>            Reporter: Braden Shepherdson
>            Assignee: Braden Shepherdson
>
> 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.5#6160)