Class: CordovaUtils

CordovaUtils(opts)

Cordova utils class

Constructor

new CordovaUtils(opts)

Creates a Cordova utils instance
Parameters:
Name Type Description
opts object Cordova utils options
Source:
Example
const cordovaUtils = new CordovaUtils()

Methods

(async) setVersion(versionNumber, buildNumber, configFileopt)

Set a Cordova app version and build numbers
Parameters:
Name Type Attributes Default Description
versionNumber string Version number to be set
buildNumber string Build number to be set
configFile string <optional>
config.xml Location of `config.xml` (e.g. `/path/to/config.xml`). Defaults to `./config.xml`.
Source:
Example
await cordovaUtils.setVersion('1.4.5', '34')