MCPcopy
hub / github.com/meteor/meteor / ensurePlatformsAreSynchronized

Method ensurePlatformsAreSynchronized

tools/cordova/project.js:444–463  ·  view source on GitHub ↗
(platforms = this.cordovaPlatformsInApp)

Source from the content-addressed store, hash-verified

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

Callers 4

prepareFromAppBundleMethod · 0.95
doAddPlatformFunction · 0.95
doRemovePlatformFunction · 0.95

Calls 3

addPlatformMethod · 0.95
removePlatformMethod · 0.95

Tested by

no test coverage detected