This is an automated email from the ASF dual-hosted git repository. erisu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cordova-android.git
The following commit(s) were added to refs/heads/master by this push: new 08b8a954 fix(plugins): handle uninstalling multiple plugin assets (#1805) 08b8a954 is described below commit 08b8a95416f29d7ef528f17cae65957fa9c91e74 Author: エリス <er...@users.noreply.github.com> AuthorDate: Mon Jun 16 13:11:04 2025 +0900 fix(plugins): handle uninstalling multiple plugin assets (#1805) --- lib/pluginHandlers.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/pluginHandlers.js b/lib/pluginHandlers.js index 385d9932..3247557e 100644 --- a/lib/pluginHandlers.js +++ b/lib/pluginHandlers.js @@ -141,14 +141,13 @@ const handlers = { uninstall: function (obj, plugin, project, options) { const target = obj.target || obj.src; - if (!target) throw new CordovaError(generateAttributeError('target', 'asset', plugin.id)); + if (!target) { + throw new CordovaError(generateAttributeError('target', 'asset', plugin.id)); + } - removeFile(path.resolve(project.www, target)); - removeFile(path.resolve(project.www, 'plugins', plugin.id)); + removeFileAndParents(project.www, target); if (options && options.usePlatformWww) { - // CB-11022 remove file from both directories if usePlatformWww is specified - removeFile(path.resolve(project.platformWww, target)); - removeFile(path.resolve(project.platformWww, 'plugins', plugin.id)); + removeFileAndParents(project.platformWww, target); } } }, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org