From 9c589a3b6c3230aa9ae32a17634c7b0bc114981d Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Mon, 24 Feb 2020 18:16:04 +0100 Subject: [PATCH] fix(cli): properly merge non application config-file (#2478) --- cli/src/cordova.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cordova.ts b/cli/src/cordova.ts index 33eba05881..93418c444b 100644 --- a/cli/src/cordova.ts +++ b/cli/src/cordova.ts @@ -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(' { applicationXMLAttributes.push(`${ek}="${e.$[ek]}"`); });