From fd43ac40c1f0ebf9bdba365252e5f28510dee54f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chameyrat?= Date: Thu, 11 Apr 2024 16:46:42 +0200 Subject: [PATCH] Add namespace in build.gradle for RN 73 compatibility --- android/build.gradle | 5 +++++ android/src/main/AndroidManifest.xml | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index e156841..346ffce 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,11 @@ apply plugin: 'com.android.library' android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.rollbar" + } + compileSdkVersion project.hasProperty('compileSdkVersion') ? project.compileSdkVersion : 27 buildToolsVersion project.hasProperty('buildToolsVersion') ? project.buildToolsVersion : "27.0.3" diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml index e92e8a0..e863577 100644 --- a/android/src/main/AndroidManifest.xml +++ b/android/src/main/AndroidManifest.xml @@ -1,6 +1,2 @@ - - - - + \ No newline at end of file