Repository: software-mansion/react-native-svg (language: java)

Issue:
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported
### Discussed in https://github.com/software-mansion/react-native-svg/discussions/2593

<div type='discussions-op-text'>

<sup>Originally posted by **Angelk90** January  2, 2025</sup>
Hi @jakex7, I always get this message:

```
> Task :react-native-svg:processReleaseManifest
package="com.horcrux.svg" found in source AndroidManifest.xml: 
React-native-MyApp/node_modules/react-native-svg/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, 
and the value is ignored.
Recommendation: remove package="com.horcrux.svg" from the source AndroidManifest.xml: 
React-native-MyApp/node_modules/react-native-svg/android/src/main/AndroidManifest.xml.
```
</div>


Discussion / hints:

Fix patch:
diff --git a/android/build.gradle b/android/build.gradle
index d6d618d75..854e1277b 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -81,10 +81,8 @@ def FRESCO_VERSION = getFrescoVersion()
 
 android {
     compileSdkVersion safeExtGet('compileSdkVersion', 28)
+    namespace "com.horcrux.svg"
     def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
-    if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
-        namespace "com.horcrux.svg"
-    }
     if (agpVersion.tokenize('.')[0].toInteger() >= 8) {
         buildFeatures {
             buildConfig = true
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index d85bd62ed..c4e6c98d7 100644
--- a/android/src/main/AndroidManifest.xml
+++ b/android/src/main/AndroidManifest.xml
@@ -1,2 +1,1 @@
-<manifest package="com.horcrux.svg">
-</manifest>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"/>


Test patch: