From 707cad6e71da3c993106664995ae70bc207442a0 Mon Sep 17 00:00:00 2001
From: Linmic <linmic@hey.com>
Date: Sun, 1 Oct 2023 21:53:32 +0900
Subject: [PATCH] build: RN 73 / AGP 8 support for Android

---
 android/build.gradle | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/android/build.gradle b/android/build.gradle
index 773eec8e..e9e5ae10 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -15,6 +15,13 @@ apply plugin: 'com.android.library'
 
 android {
 	compileSdkVersion safeExtGet('compileSdkVersion', 31)
+
+	def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
+
+	if (agpVersion.tokenize('.')[0].toInteger() >= 7) {
+			namespace "community.revteltech.nfc"
+  }
+
 	defaultConfig {
 		minSdkVersion safeExtGet('minSdkVersion', 16)
     	//noinspection OldTargetApi