mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-21 08:12:56 +08:00
GH-540 fix for source-file with app target-dir (PR #542)
This commit is contained in:
parent
951ff5552e
commit
717d768cec
5
bin/templates/cordova/lib/pluginHandlers.js
vendored
5
bin/templates/cordova/lib/pluginHandlers.js
vendored
@ -323,8 +323,9 @@ function getInstallDestination (obj) {
|
||||
}
|
||||
|
||||
function studioPathRemap (obj) {
|
||||
// If a Java file is using the new directory structure, don't penalize it
|
||||
if (!obj.targetDir.includes('app/src/main')) {
|
||||
// If any source file is using the app new directory structure,
|
||||
// don't penalize it
|
||||
if (!obj.targetDir.includes('app')) {
|
||||
if (obj.src.endsWith('.java')) {
|
||||
return path.join('app/src/main/java', obj.targetDir.substring(4), path.basename(obj.src));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user