You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Trevor Brindle (JIRA)" <ji...@apache.org> on 2016/10/07 18:49:20 UTC

[jira] [Commented] (CB-6118) CLI should support installing a plugin on a per-platform basis

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

Trevor Brindle commented on CB-6118:
------------------------------------

Can this issue be revisited? 

This is important in the case of a plugin only meant for one platform - for example the iOS keychain plugin. It is strange to change something in the android project, and in the CLI to see this plugin `installed on Android`.

> CLI should support installing a plugin on a per-platform basis
> --------------------------------------------------------------
>
>                 Key: CB-6118
>                 URL: https://issues.apache.org/jira/browse/CB-6118
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI
>            Reporter: Andrew Grieve
>            Assignee: Mark Koudritsky
>
> There are several reasons why you would want to do this:
> * You want splashscreen on iOS, but not Android
> * You want a Play Services-based geolocation plugin on Android, and regular Geolocation for iOS
> * You want InAppBrowser for iOS, but want to just use intents on Android
> * You many want an older version of File plugin on Android, but the latest on on iOS
> Desired syntax:
> {code}
> cordova plugin add org.apache.cordova.file@0.3.0 --platform=ios
> cordova plugin rm org.apache.cordova.file --platform=ios --platform=android
> {code}
> Change to `cordova plugin ls`:
> {code}
> $ cordova plugin ls
> Plugins installed on Android:
>     org.apache.cordova.file@1.0.0
>     org.apache.cordova.file-transfer@1.2.3
> Plugins installed on iOS:
>     org.apache.cordova.file@0.1.0
>     org.apache.cordova.file-transfer@1.1.3
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org