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

Function getPlatformElement

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

Source from the content-addressed store, hash-verified

158}
159
160export function getPlatformElement(p: Plugin, platform: string, elementName: string): any {
161 const platformTag = getPluginPlatform(p, platform);
162 if (platformTag) {
163 const element = platformTag[elementName];
164 if (element) {
165 return element;
166 }
167 }
168 return [];
169}
170
171export function getPluginType(p: Plugin, platform: string): PluginType {
172 switch (platform) {

Callers 15

logCordovaManualStepsFunction · 0.90
checkPluginDependenciesFunction · 0.90
useFrameworksFunction · 0.90
installGradlePluginsFunction · 0.90
copyPluginsNativeFilesFunction · 0.90
buildDependencyTextsFunction · 0.90
generatePodFileFunction · 0.90
generateCordovaPodspecFunction · 0.90
copyPluginsNativeFilesFunction · 0.90

Calls 1

getPluginPlatformFunction · 0.85

Tested by

no test coverage detected