hotpatch.js 433 Bytes
Newer Older
李晓兵's avatar
李晓兵 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
var  utils = require('cordova/utils'),
    exec = require('cordova/exec')

//------------------------------------------------------------------------------
// object that we're exporting
//------------------------------------------------------------------------------
var hotpatch = module.exports;



hotpatch.updateNewVersion = function (updateUrl) {

        cordova.exec(null,null,'hotpatch','updateNewVersion',[updateUrl]);

}