From 2534a3c767401edf363dcb3c48fa9c131521ad56 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Mon, 2 Oct 2017 19:04:40 -0700 Subject: [PATCH] CB-11244: Added remapping for drawables --- bin/templates/cordova/lib/pluginHandlers.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/templates/cordova/lib/pluginHandlers.js b/bin/templates/cordova/lib/pluginHandlers.js index d14baba6..411bc55a 100644 --- a/bin/templates/cordova/lib/pluginHandlers.js +++ b/bin/templates/cordova/lib/pluginHandlers.js @@ -1,7 +1,4 @@ /* - * - * Copyright 2013 Anis Kadri - * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -71,10 +68,12 @@ var handlers = { }, 'resource-file': { install: function (obj, plugin, project, options) { - copyFile(plugin.dir, obj.src, project.projectDir, path.normalize(obj.target), !!(options && options.link)); + var dest = path.join('app/src/main', path.normalize(obj.target)); + copyFile(plugin.dir, obj.src, project.projectDir, dest, !!(options && options.link)); }, uninstall: function (obj, plugin, project, options) { - removeFile(project.projectDir, path.normalize(obj.target)); + var dest = path.join('app/src/main', path.normalize(obj.target)); + removeFile(dest, path.normalize(obj.target)); } }, 'framework': {