From f15a1fcd0345c53f4ea943241800afaa53bca6df Mon Sep 17 00:00:00 2001 From: Ivan Ignatiev Date: Tue, 10 Oct 2023 20:37:10 +0200 Subject: [PATCH] fix: #328 makes library compatible with rn 0.73 --- android/build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index d034fb08..cbc158b2 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -27,6 +27,13 @@ def getExtOrIntegerDefault(name) { android { compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') + + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.RNAppleAuthentication" + buildFeatures.buildConfig true + } + defaultConfig { minSdkVersion getExtOrIntegerDefault('minSdkVersion') targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')