From 2f150682ca6867f835eff2fa430d7c1b064b399a Mon Sep 17 00:00:00 2001 From: Alex Hernandez Date: Tue, 18 Jul 2023 12:33:19 -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 0ed6d484..ad390449 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -86,6 +86,11 @@ if (isNewArchitectureEnabled()) { } android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativecommunity.asyncstorage" + } + compileSdkVersion safeExtGet('compileSdkVersion', 32) // Used to override the NDK path/version by allowing users to customize // the NDK path/version from their root project (e.g. for M1 support)