cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-5379) Runtime discovery of installed plugins
Date Tue, 14 Jan 2014 01:11:50 GMT

    [ 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)

Mime
View raw message