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 ConfigParser
relativePath
checking and added missing cases for isAbsolutePath
UAP
as a valid TargetPlatformIdentifier
plugman 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-world
json.parse
before using cfg
merges/
by default, now all tests passcordova-app-hello-world
dependency to cordova-lib
cordova create
againcreate.js
to always require passing in a www
project_dir
from (un)installers signatureaddElement()
to ConfigParser
<allow-intent>
for App Store on iOSPlatformProjectAdapter
from platforms.js
cordova-windows
in plugin.xml
cordova plugin save
which saves all installed plugins to config.xmlcordova plugin add FOO
should fail when no variables specified.setGlobalPreference()
to ConfigParser
feature
to plugin
config.xml
cordova platform add
cordova platform save
: save installed platforms and their sources (versions/git_urls/folders) Into config.xml
platforms.json
cordova platform save
<allow-intent>
to default templateisValidCprName
fetchNPM
and fetchPlugReg
into fetchPlugin
isValidCprName
to exclude matching @version
changePluginId
into two functionscordova plugin add <plugin>
should be able to restore urls and folders in addition to versionsandroid-activityName
within config.xml
org.apache.cordova.test-framework
to plugman publish whitelistplugin-name
support for removing plugins.pluginID
isn't reverse domain name styleREADME
README
cordova platform add
window.cordova
does not already exist and throw error if it doesappveyor
badgeconfigparser
module for exposing config.xml
in the Browser platformNORESULT
returns falsy