Merge pull request #449 from jcesarmobile/CB-14125

CB-14125:(android) Increase old plugin compatibility
This commit is contained in:
jcesarmobile 2018-06-13 23:00:55 +02:00 committed by GitHub
commit 472ab626d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -320,8 +320,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));
}
}