diff --git a/packages/react-native/android/build.gradle b/packages/react-native/android/build.gradle index a7be1f67..ea0cf94d 100644 --- a/packages/react-native/android/build.gradle +++ b/packages/react-native/android/build.gradle @@ -62,6 +62,12 @@ project.ext { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + // Check AGP version for backward compatibility w/react-native versions still on gradle plugin 6 + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace = "io.invertase.notifee" + } + defaultConfig { multiDexEnabled true }