This version of the documentation is outdated!
Click here for the latest released version.
Upgrading Cordova BlackBerry
This document is for people who need to upgrade their Cordova versions from an older version to a current version of Cordova. 1.4.1 Note: 1.5.0 represents a semi-major change to the PhoneGap/Cordova project! All references to PhoneGap have been changed to Cordova.
- To upgrade to 1.5.0, please go from 1.4.1
Upgrade to 1.5.0 from 1.4.1
Updating just the www folder:
- Open your
www/
folder, which contains your app. - Remove and update the old phonegap.1.4.1.jar file in the
ext/
folder and replace it with cordova.1.5.0.jar. - Update the contents of the
ext-air/
folder and make sure to rename the folders with Phonegap with them to Cordova. - Copy the new
cordova-1.5.0.js
into your project.- If playbook, then update the .js file in the
playbook/
folder.
- If playbook, then update the .js file in the
- Update your HTML to use the new
cordova-1.5.0.js
file. - Update your www/plugins.xml file - remember all of the references to PhoneGap need to be changed to Cordova:
From:
To:
Updating the sample folder (ie, updating using the ant tools):
- Open the
sample/lib/
folder. - Update the .jar file in the
phonegap.1.4.1/ext/
folder. - Update the contents of the
phonegap.1.4.1/ext-air/
folder. - Update the .js file in the
phonegap.1.4.1/javascript/
folder. - Open the
sample/lib/
folder and rename thecordova.1.4.1/
folder tocordova.1.5.0/
. - Update build.xml to update the ant tools.
- Type
ant blackberry build
orant playbook build
to update thewww/
folder with updated Cordova. - Open the
www/
folder and update your HTML to use the newcordova-1.5.0.js
file. - Update your www/plugins.xml file - remember all of the references to PhoneGap need to be changed to Cordova:
From:
To: