From 2b10550c12ba300560fa865772b8cf8f121d69ed Mon Sep 17 00:00:00 2001 From: risadmin_prod Date: Mon, 14 Sep 2026 11:54:58 +0000 Subject: [PATCH] Update android/build.gradle --- android/build.gradle | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 802640d..4557cbe 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -28,3 +28,20 @@ subprojects { tasks.register("clean", Delete) { delete rootProject.buildDir } +subprojects { + afterEvaluate { project -> + if (project.hasProperty('android')) { + def androidExt = project.extensions.findByName('android') + if (androidExt != null && androidExt.hasProperty('namespace') && (androidExt.namespace == null || androidExt.namespace == '')) { + def manifestFile = project.file('src/main/AndroidManifest.xml') + if (manifestFile.exists()) { + def manifestText = manifestFile.text + def matcher = manifestText =~ /package="([^"]+)"/ + if (matcher.find()) { + androidExt.namespace = matcher.group(1) + } + } + } + } + } +} \ No newline at end of file