From 23acc50d7279123711583c05f54d7c34f7962e02 Mon Sep 17 00:00:00 2001 From: Alex Hernandez Date: Tue, 18 Jul 2023 12:46:15 -0700 Subject: [PATCH] Update build.gradle --- android/build.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 13c7e43..db02f3d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -42,6 +42,11 @@ buildscript { apply plugin: 'com.android.library' android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativecommunity.cookies" + } + compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) defaultConfig {