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:

  1. Open your www/ folder, which contains your app.
  2. Remove and update the old phonegap.1.4.1.jar file in the ext/ folder and replace it with cordova.1.5.0.jar.
  3. Update the contents of the ext-air/ folder and make sure to rename the folders with Phonegap with them to Cordova.
  4. Copy the new cordova-1.5.0.js into your project.
    • If playbook, then update the .js file in the playbook/ folder.
  5. Update your HTML to use the new cordova-1.5.0.js file.
  6. 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):

  1. Open the sample/lib/ folder.
  2. Update the .jar file in the phonegap.1.4.1/ext/ folder.
  3. Update the contents of the phonegap.1.4.1/ext-air/ folder.
  4. Update the .js file in the phonegap.1.4.1/javascript/ folder.
  5. Open the sample/lib/ folder and rename the cordova.1.4.1/ folder to cordova.1.5.0/.
  6. Update build.xml to update the ant tools.
  7. Type ant blackberry build or ant playbook build to update the www/ folder with updated Cordova.
  8. Open the www/ folder and update your HTML to use the new cordova-1.5.0.js file.
  9. Update your www/plugins.xml file - remember all of the references to PhoneGap need to be changed to Cordova:

From:

To: