From 670eafafcf31b6f17e96e1e43d70caf594b56e40 Mon Sep 17 00:00:00 2001 From: Mathieu Acthernoene Date: Sun, 7 Jan 2024 20:52:11 +0100 Subject: [PATCH] Fix AndroidManifest.xml namespace deprecation warning --- android/build.gradle | 9 +++++++++ android/src/main/AndroidManifest.xml | 3 +-- android/src/main/AndroidManifestNew.xml | 3 +++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 android/src/main/AndroidManifestNew.xml diff --git a/android/build.gradle b/android/build.gradle index 0d4decf..69d7138 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -27,6 +27,15 @@ android { if (project.android.hasProperty("namespace")) { namespace "com.zoontek.rnlocalize" + + buildFeatures { + buildConfig true + } + sourceSets { + main { + manifest.srcFile "src/main/AndroidManifestNew.xml" + } + } } defaultConfig { buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index b6046e9..e2c3f28 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,4 +1,3 @@ - + diff --git a/android/src/main/AndroidManifestNew.xml b/android/src/main/AndroidManifestNew.xml new file mode 100644 index 0000000..9a40236 --- /dev/null +++ b/android/src/main/AndroidManifestNew.xml @@ -0,0 +1,3 @@ + + +