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

Function buildResourcesText

cli/src/ios/update.ts:157–168  ·  view source on GitHub ↗
(resources: any[])

Source from the content-addressed store, hash-verified

155}
156
157function buildResourcesText(resources: any[]) {
158 const resourceEntry = [];
159 for (const resource of resources) {
160 resourceEntry.push(`.copy("resources/${resource.$.src.split('/').pop()}")`);
161 }
162 return resources.length > 0
163 ? `,
164 resources: [
165 ${resourceEntry.join(',\n ')}
166 ]`
167 : '';
168}
169
170async function buildDependencyTexts(p: Plugin, config: Config) {
171 let allDependencies: string[] = getPlatformElement(p, platform, 'dependency');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected