1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
module.exports = { getVersionNumber: function( success, fail ) { if( !blackberry || !blackberry.app || !blackberry.app.version ) { if( fail ) { return fail(); } else { return ""; } } if( success ) { return success( blackberry.app.version ); } return blackberry.app.version; } }; require("cordova/exec/proxy").add("AppVersion", module.exports);