From 48e07991deb49fc2f5310a8f0172139e7cbe911e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chameyrat?= Date: Thu, 11 Apr 2024 16:37:11 +0200 Subject: [PATCH] Add namespace in build.gradle for RN 73 compatibility --- android/build.gradle | 5 +++++ android/src/main/AndroidManifest.xml | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 6c4b14c..8e09248 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -19,6 +19,11 @@ def safeExtGet(prop, fallback) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativesystemnavigationbar" + } + compileSdkVersion safeExtGet('compileSdkVersion', 30) defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 16) diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index 68e06eb..6537379 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,4 +1 @@ - - - +