You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2014/01/14 02:11:50 UTC

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

    [ https://issues.apache.org/jira/browse/CB-5379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13870230#comment-13870230 ] 

Jesse MacFadyen commented on CB-5379:
-------------------------------------

Are we still doing this?

> 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
>             Fix For: 3.4.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.5#6160)