Skip to content

Commit

Permalink
fix(cli): Support of BoM dependencies on cordova plugins (#5827)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed Aug 15, 2022
1 parent 7ce6dd4 commit ea2d95b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cli/src/android/update.ts
Expand Up @@ -239,7 +239,11 @@ project(':${getGradlePackageName(
`apply from: "${relativePluginPath}/${framework.$.src}"`,
);
} else if (!framework.$.type && !framework.$.custom) {
frameworksArray.push(` implementation "${framework.$.src}"`);
if (framework.$.src.startsWith('platform(')) {
frameworksArray.push(` implementation ${framework.$.src}`);
} else {
frameworksArray.push(` implementation "${framework.$.src}"`);
}
}
});
prefsArray = prefsArray.concat(getAllElements(p, platform, 'preference'));
Expand Down Expand Up @@ -324,7 +328,11 @@ export async function handleCordovaPluginsGradle(
});
let frameworkString = frameworksArray
.map(f => {
return ` implementation "${f}"`;
if (f.startsWith('platform(')) {
return ` implementation ${f}`;
} else {
return ` implementation "${f}"`;
}
})
.join('\n');
frameworkString = await replaceFrameworkVariables(
Expand Down

0 comments on commit ea2d95b

Please sign in to comment.