Assign version numbers to your app
You must change the version number of your app before you package it for signing and installation on a device. The version number for a BlackBerry 10 OS app comprises a series of four numbers separated by decimals (for example 18.104.22.1687).
Each time you update your app on the BlackBerry World storefront, you must change at least one segment of the version number before signing and uploading it. You can change the major, minor, and revision numbers by updating the versionNumber element in the BAR application descriptor file (bar-descriptor.xml).
You can change the build number using one of the following mechanisms:
- Use the Create build number file action in the bar-descriptor.xml editor. This action externalizes the build ID in a file, which the packager tool reads to automatically increment and store the build ID.
- Update the buildId element in your application descriptor file.
- Specify the build ID using the buildId command-line option when you package your app using the blackberry-nativepackager tool. The buildId option accepts a number from 0 to 65535. If you specify a build number in both the bar-descriptor.xml and using the blackberry-nativepackager tool, the value given to the blackberry-nativepackager tool is used.
Last modified: 2013-10-30