From 298f1e3cc89b676ed32e089c28b343dc130c2cab Mon Sep 17 00:00:00 2001 From: "Christopher J. Brody" Date: Wed, 14 Nov 2018 11:40:33 -0500 Subject: [PATCH] Fix comments in getInstallDestination (PR #550) (in pluginHandlers.js) --- bin/templates/cordova/lib/pluginHandlers.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/templates/cordova/lib/pluginHandlers.js b/bin/templates/cordova/lib/pluginHandlers.js index cfdb5004..5b37bcaf 100644 --- a/bin/templates/cordova/lib/pluginHandlers.js +++ b/bin/templates/cordova/lib/pluginHandlers.js @@ -321,13 +321,14 @@ function getInstallDestination (obj) { var APP_MAIN_PREFIX = 'app/src/main'; if (obj.targetDir.includes('app')) { - // If any source file is using the app new directory structure, + // If any source file is using the new app directory structure, // don't penalize it return path.join(obj.targetDir, path.basename(obj.src)); } else if (obj.src.endsWith('.java')) { return path.join(APP_MAIN_PREFIX, 'java', obj.targetDir.substring(4), path.basename(obj.src)); } else { - // For all other files, add 'app/src/main' to the targetDir if it didn't have it already + // For all other source files not using the new app directory structure, + // add 'app/src/main' to the targetDir return path.join(APP_MAIN_PREFIX, obj.targetDir, path.basename(obj.src)); }