Skip to content

Commit

Permalink
fix(cli): Fix cordova plugin config checker over checking on 4.x (#6443)
Browse files Browse the repository at this point in the history
  • Loading branch information
IT-MikeS committed Mar 30, 2023
1 parent 6f8d1ad commit 5ce68bb
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -954,19 +954,26 @@ export async function writeCordovaAndroidManifest(
}
}
} else {
let foundRequiredElement = false;
for (const existingElementItem of existingElement.children) {
const foundRequiredElementIn = doesElementMatch(
requiredElement,
existingElementItem,
);
if (foundRequiredElementIn) {
foundRequiredElement = true;
break;
if (
requiredElement.children === undefined &&
existingElement.children === undefined
) {
return true;
} else {
let foundRequiredElement = false;
for (const existingElementItem of existingElement.children) {
const foundRequiredElementIn = doesElementMatch(
requiredElement,
existingElementItem,
);
if (foundRequiredElementIn) {
foundRequiredElement = true;
break;
}
}
if (!foundRequiredElement) {
return false;
}
}
if (!foundRequiredElement) {
return false;
}
}
}
Expand Down

0 comments on commit 5ce68bb

Please sign in to comment.