diff --git a/android/build.gradle b/android/build.gradle index 6782479..0238b0c 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -5,6 +5,13 @@ def safeExtGet(prop, fallback) { } 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 "com.calendarevents" + } + compileSdkVersion safeExtGet('compileSdkVersion', 28) buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')