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

Marcel Kinard commented on CB-6118:
-----------------------------------

Gosh, this seems like adding a lot of complexity. Is this really going to be a 
common use case?

If you do this, we'd also want to be able to print the plugin versions that are 
used in each platform with the "cordova info" command or similar for diagnostic 
purposes.

If an app developer really wants to do this, what if they just used the 
platform-centric workflow to set up a project for each platform where they can 
add whatever plugins (and versions) that they want, and share the www folder 
with a --link-to?

> 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 [email protected] --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:
>     [email protected]
>     [email protected]
> Plugins installed on iOS:
>     [email protected]
>     [email protected]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to