> The user just runs `cordova platform add android` and expects to get the 
> latest and greatest.

I think "latest" should have been written with back-ticks (`latest`) since 
`latest` tag on npm generally means latest stable release (my understanding, at 
least).

If the Cordova CLI user would do `cordova platform add android@latest`, for 
example, then the Cordova CLI does the following (just tested with 
`[email protected]` package version):
* fetch `cordova-android@latest` from npm
* add `<engine name="android" spec="latest" />` to `config.xml` (this will go 
away in next major Cordova release)
* add `"cordova-android": "^7.1.1"` entry to `package.json`

I am coming around to favor that this should be the case by default, if the 
Cordova CLI user runs `cordova platform add android` for example. But this 
means that we better ensure that newer major release of Cordova platform 
packages will work with older major release of Cordova CLI, to a reasonable 
extent at least.

[ Full content available at: https://github.com/apache/cordova/issues/18 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to