From 235bf563f0862399f15c97c2bfd3c96de46947bf Mon Sep 17 00:00:00 2001 From: 1nspir3d <62627903+1nspir3d@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:30:36 +0300 Subject: [PATCH] Update build.gradle --- android/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 9f02021..0cd6b89 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -16,6 +16,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.react.rnspinkit" + } + compileSdkVersion safeExtGet('compileSdkVersion', 28) //noinspection GradleDependency buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3') @@ -47,4 +52,4 @@ dependencies { //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:${safeExtGet('reactnativeVersion', '+')}" implementation 'com.github.ybq:Android-SpinKit:1.4.0' -} \ No newline at end of file +}