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

Shazron Abdullah commented on CB-12122:
---------------------------------------

{code}
$ cordova --version
7.0.1
$ cordova create foo
Creating a new cordova project.
$ cd foo
$ cordova platform add ios
Using cordova-fetch for cordova-ios@~4.4.0
Adding ios project...
Creating Cordova project for the iOS platform:
        Path: platforms/ios
        Package: io.cordova.hellocordova
        Name: HelloCordova
iOS project created with cordova-ios@4.4.0
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the 
project
Installing "cordova-plugin-whitelist" for ios
Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving ios@~4.4.0 into config.xml file ...
$ cordova plugin add https://github.com/shazron/incompatible-cordova-plugin.git
Installing "incompatible-cordova-plugin" for ios
Plugin doesn't support this project's cordova version. cordova: 7.0.1, failed 
version requirement: <0.0.1
Skipping 'incompatible-cordova-plugin' for ios
Adding incompatible-cordova-plugin to package.json
Saved plugin info for "incompatible-cordova-plugin" to config.xml
{code}

> Incompatible plugin should make the build fail, not be skipped silently
> -----------------------------------------------------------------------
>
>                 Key: CB-12122
>                 URL: https://issues.apache.org/jira/browse/CB-12122
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli, cordova-plugman
>    Affects Versions: 6.3.0
>            Reporter: 165537
>
> When compiling (on Phonegap Build) a project containing a plugin which 
> Cordova's version is incompatible, the plugin is silently skipped and the 
> build is successful. Of course the functionalities of the plugin won't work 
> in the app. Eg, here's what I got when compiling phonegap-plugin-push with 
> Cordova 6.3.0:
> Fetching plugin "phonegap-plugin-push@1.9.0" via npm
> Installing "phonegap-plugin-push" at "1.9.0" for android
> Plugin doesn't support this project's cordova version. cordova: 6.3.2, failed 
> version requirement: >=6.4.0
> Skipping 'phonegap-plugin-push' for android



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to