Skip to content

Commit

Permalink
fix(cli): properly merge non application config-file (#2478)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Feb 24, 2020
1 parent dd3875b commit 9c589a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ export async function writeCordovaAndroidManifest(cordovaPlugins: Plugin[], conf
const pathParts = getPathParts(configElement.$.parent || configElement.$.target);
if (pathParts.length > 1) {
if (pathParts.pop() === 'application') {
if (configElement.$.mode && configElement.$.mode === 'merge') {
if (configElement.$.mode && configElement.$.mode === 'merge' && xmlElement.startsWith('<application')) {
Object.keys(e.$).map((ek: any) => {
applicationXMLAttributes.push(`${ek}="${e.$[ek]}"`);
});
Expand Down

0 comments on commit 9c589a3

Please sign in to comment.