MCPcopy
hub / github.com/ionic-team/capacitor / getAddedPlatforms

Function getAddedPlatforms

cli/src/common.ts:452–466  ·  view source on GitHub ↗
(config: Config)

Source from the content-addressed store, hash-verified

450}
451
452export async function getAddedPlatforms(config: Config): Promise<string[]> {
453 const platforms: string[] = [];
454
455 if (await getProjectPlatformDirectory(config, config.android.name)) {
456 platforms.push(config.android.name);
457 }
458
459 if (await getProjectPlatformDirectory(config, config.ios.name)) {
460 platforms.push(config.ios.name);
461 }
462
463 platforms.push(config.web.name);
464
465 return platforms;
466}
467
468export async function checkPlatformVersions(config: Config, platform: string): Promise<void> {
469 const semver = await import('semver');

Callers 1

selectPlatformsFunction · 0.85

Calls 1

Tested by

no test coverage detected