MCPcopy
hub / github.com/meteor/meteor / addPlatform

Method addPlatform

tools/cordova/project.js:422–429  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

420 }
421
422 addPlatform(platform) {
423 this.runCommands(`adding platform ${displayNameForPlatform(platform)} \
424to Cordova project`, async () => {
425 let version = pinnedPlatformVersions[platform];
426 let platformSpec = version ? `${platform}@${version}` : platform;
427 await cordova_lib.platform('add', platformSpec, this.defaultOptions);
428 });
429 }
430
431 removePlatform(platform) {
432 this.runCommands(`removing platform ${displayNameForPlatform(platform)} \

Callers 1

Calls 2

runCommandsMethod · 0.95
displayNameForPlatformFunction · 0.90

Tested by

no test coverage detected