[
https://issues.apache.org/jira/browse/CB-7969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15123960#comment-15123960
]
Tobias Bocanegra edited comment on CB-7969 at 1/29/16 6:44 PM:
---------------------------------------------------------------
I don't think this is a duplicate of CB-6118. That issue is about deliberately
choosing different plugins in the config.xml based on platforms.
This issue is about adding a plugin that has only support for some platforms.
Nevertheless, the JS gets installed in all platforms.
The problem is now, that the application cannot detect if a plugin is available
or not, since the JS methods are always there, even if the native counterpart
is missing.
was (Author: tripod):
I don't think this is a duplicate of CB-6118. That issue is about deliberately
choosing different plugins in the config.xml based on platforms.
This issue is about adding a plugin that has only support for some platforms.
Nevertheless, the JS gets installed in all platforms.
> plugin add ... makes it install for all platform when plugin.xml only
> supports 1 platform
> -----------------------------------------------------------------------------------------
>
> Key: CB-7969
> URL: https://issues.apache.org/jira/browse/CB-7969
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 3.6.0, 6.0.0
> Reporter: Darryl L. Miles
>
> plugin add ... makes it installed for all platform when plugin.xml only
> supports 1 platform
> $ cordova platform add blackberry10
> $ cordova platform add browser --usegit
> $ cordova plugin add com.blackberry.notification
> $ cordova build browser -d
> See the output include the plugin when build 'browser'.
> Now examine plugins\browser.json and the "installed_plugins" section, you
> will see it got added there.
> Now examine plugins\com.blackberry.notification\plugin.xml and see that the
> element plugin.platform[name]="blackberry10" exists, but no other platform is
> supported and not default platform config is provided.
> So why was it installed for the "browser" platform ?
> I think it is expected it only gets installed into the "blackberry10"
> platform.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]