(platform)
| 398 | } |
| 399 | |
| 400 | installedVersionForPlatform(platform) { |
| 401 | const command = files.convertToOSPath(files.pathJoin( |
| 402 | this.projectRoot, 'platforms', platform, 'cordova', 'version')); |
| 403 | // Make sure the command exists before trying to execute it |
| 404 | if (files.exists(command)) { |
| 405 | return this.runCommands( |
| 406 | `getting installed version for platform ${platform} in Cordova project`, |
| 407 | execFileSync(command, { |
| 408 | env: this.defaultEnvWithPathsAdded(), |
| 409 | cwd: this.projectRoot}), null, null); |
| 410 | } else { |
| 411 | return null; |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | updatePlatforms(platforms = this.listInstalledPlatforms()) { |
| 416 | this.runCommands(`updating Cordova project for platforms \ |
no test coverage detected