You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2018/08/02 17:18:31 UTC

[cordova-android] 03/04: CB-14125:(android) Increase old plugin compatibility

This is an automated email from the ASF dual-hosted git repository.

brodybits pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/cordova-android.git

commit 8a69e328004a20810eec4466cbda7fa9013e21ec
Author: Julio César <jc...@gmail.com>
AuthorDate: Mon Jun 11 00:48:24 2018 +0200

    CB-14125:(android) Increase old plugin compatibility
---
 bin/templates/cordova/lib/pluginHandlers.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/templates/cordova/lib/pluginHandlers.js b/bin/templates/cordova/lib/pluginHandlers.js
index b5a46cf..a3ebed0 100644
--- a/bin/templates/cordova/lib/pluginHandlers.js
+++ b/bin/templates/cordova/lib/pluginHandlers.js
@@ -322,8 +322,8 @@ function studioPathRemap (obj) {
     if (!obj.targetDir.includes('app/src/main')) {
         if (obj.src.endsWith('.java')) {
             return path.join('app/src/main/java', obj.targetDir.substring(4), path.basename(obj.src));
-        } else if (obj.src.endsWith('.xml')) {
-            // We are making a huge assumption here that XML files will be going to res/xml or values/xml
+        } else {
+            // For all other files, add 'app/src/main' to the targetDir if it didn't have it already
             return path.join('app/src/main', obj.targetDir, path.basename(obj.src));
         }
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org