Constructor
new CordovaUtils(opts)
Creates a Cordova utils instance
Parameters:
Name | Type | Description |
---|---|---|
opts |
object | Cordova utils options |
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`. |
Example
await cordovaUtils.setVersion('1.4.5', '34')