MCPcopy Index your code
hub / github.com/ionic-team/capacitor / getPluginPlatform

Function getPluginPlatform

cli/src/plugin.ts:149–158  ·  view source on GitHub ↗
(p: Plugin, platform: string)

Source from the content-addressed store, hash-verified

147}
148
149export function getPluginPlatform(p: Plugin, platform: string): any {
150 const platforms = p.xml.platform;
151 if (platforms) {
152 const platforms = p.xml.platform.filter(function (item: any) {
153 return item.$.name === platform;
154 });
155 return platforms[0];
156 }
157 return [];
158}
159
160export function getPlatformElement(p: Plugin, platform: string, elementName: string): any {
161 const platformTag = getPluginPlatform(p, platform);

Callers 10

autoGenerateConfigFunction · 0.90
resolvePluginFunction · 0.90
kotlinNeededCheckFunction · 0.90
copyPluginsNativeFilesFunction · 0.90
resolvePluginFunction · 0.90
copyPluginsNativeFilesFunction · 0.90
generatePackageTextFunction · 0.90
getPlatformElementFunction · 0.85
getAllElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected