From d3aacdeb0c86d3941464954e7d1f582e405be489 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 2 May 2023 16:31:14 +0200 Subject: [PATCH] fix(cli): Avoid infinite loop in namespace migration (#6551) --- cli/src/tasks/migrate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/tasks/migrate.ts b/cli/src/tasks/migrate.ts index 7f07ad97e..8cd31498b 100644 --- a/cli/src/tasks/migrate.ts +++ b/cli/src/tasks/migrate.ts @@ -672,8 +672,8 @@ async function movePackageFromManifestToBuildGradle( buildGradleReplaced = setAllStringIn( buildGradleText, 'android {', - ' \n', - `namespace "${packageName}"\n`, + '\n', + `\n namespace "${packageName}"`, ); if (buildGradleText == buildGradleReplaced) {