(platforms = this.cordovaPlatformsInApp)
| 442 | // Ensures that the Cordova platforms are synchronized with the app-level |
| 443 | // platforms. |
| 444 | ensurePlatformsAreSynchronized(platforms = this.cordovaPlatformsInApp) { |
| 445 | buildmessage.assertInCapture(); |
| 446 | |
| 447 | const installedPlatforms = this.listInstalledPlatforms(); |
| 448 | |
| 449 | for (let platform of platforms) { |
| 450 | if (_.contains(installedPlatforms, platform)) { |
| 451 | continue; |
| 452 | } |
| 453 | |
| 454 | this.addPlatform(platform); |
| 455 | } |
| 456 | |
| 457 | for (let platform of installedPlatforms) { |
| 458 | if (!_.contains(platforms, platform) && |
| 459 | _.contains(CORDOVA_PLATFORMS, platform)) { |
| 460 | this.removePlatform(platform); |
| 461 | } |
| 462 | } |
| 463 | } |
| 464 | |
| 465 | // Plugins |
| 466 |
no test coverage detected