layout: post author:
name: Steve Gill
url: https://twitter.com/stevesgill
title: "Tools Release: April 21, 2015" categories: news
New versions of cordova tools are now live!
Release highlights:
<feature> tags have been renamed to <plugin> tags in your projects config.xml. Adding a <plugin> tag to your config.xml will fetch and install it on cordova prepare if it isn't already installed.config.xml. When adding plugins or platforms, use the --save flag to add them to config.xml. Ex: cordova platform add android --save. Existing projects can use cordova plugin save and cordova platform save commands to save all previously installed plugins and platforms into your project's config.xml. Platforms and plugins will be autorestored when cordova prepare is run. This allows developers to easily manage and share their dependenceis among different development enviroments and with their coworkers.To update your tools:
If you have cordova installed:
npm install -g cordova
If you have plugman installed:
npm install -g plugman
When adding these platforms to your project, the following versions are now used by default. These platform versions were released recently, and the tools' defaults were updated:
plugman.help()getPlatformVersion fails for paths with spacessrc and version to spec attribute.setGlobalPreference() in ConfigParserrelativePath checking and added missing cases for isAbsolutePathUAP as a valid TargetPlatformIdentifierplugman install failure on iOS containing &semver and device-specific targeting of config-file to Windowsconfig.xml.--save work more like npm install--save: Multiple config.xml entries don't get removedapp-hello-world dependency to 3.9.0--link relative to the real project pathe70432f2: Never want to link to app-hello-worldjson.parse before using cfgmerges/ by default, now all tests passcordova-app-hello-world dependency to cordova-libcordova create againcreate.js to always require passing in a wwwproject_dir from (un)installers signatureaddElement() to ConfigParser<allow-intent> for App Store on iOSPlatformProjectAdapter from platforms.jscordova-windows in plugin.xmlcordova plugin save which saves all installed plugins to config.xmlcordova plugin add FOO should fail when no variables specified.setGlobalPreference() to ConfigParserfeature to pluginconfig.xmlcordova platform addcordova platform save: save installed platforms and their sources (versions/git_urls/folders) Into config.xmlplatforms.jsoncordova platform save<allow-intent> to default templateisValidCprNamefetchNPM and fetchPlugReg into fetchPluginisValidCprName to exclude matching @versionchangePluginId into two functionscordova plugin add <plugin> should be able to restore urls and folders in addition to versionsandroid-activityName within config.xmlorg.apache.cordova.test-framework to plugman publish whitelistplugin-name support for removing plugins.pluginID isn't reverse domain name styleREADMEREADMEcordova platform addwindow.cordova does not already exist and throw error if it doesappveyor badgeconfigparser module for exposing config.xml in the Browser platformNORESULT returns falsy