From 7fcb0facd97dabbbd20940cf3ccb93e0ba724c85 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 2 May 2023 16:07:57 +0200 Subject: [PATCH] fix(cli): Avoid infinite loop in namespace migration --- 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) {