Skip to content

Commit

Permalink
Fix AndroidManifest.xml namespace deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Jan 7, 2024
1 parent 259f40d commit 670eafa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
9 changes: 9 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
3 changes: 1 addition & 2 deletions android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zoontek.rnlocalize">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.zoontek.rnlocalize">
</manifest>
3 changes: 3 additions & 0 deletions android/src/main/AndroidManifestNew.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

0 comments on commit 670eafa

Please sign in to comment.