From 9897b17bbd2edeaa40f2a6b7184a8b36567d4b54 Mon Sep 17 00:00:00 2001 From: 1nspir3d <62627903+1nspir3d@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:27:22 +0300 Subject: [PATCH 1/2] Update build.gradle --- android/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 3d693981..6da61949 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -24,6 +24,10 @@ if (isNewArchitectureEnabled()) { android { + def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION + if (apgVersion.tokenize('.')[0].toInteger() >= 7) { + namespace "com.reactnativedocumentpicker" + } compileSdkVersion getExtOrIntegerDefault('compileSdkVersion') // Used to override the NDK path/version on internal CI or by allowing From c21709e4b79681f7b29ea5774d561c66d5cf44e1 Mon Sep 17 00:00:00 2001 From: 1nspir3d <62627903+1nspir3d@users.noreply.github.com> Date: Mon, 6 Nov 2023 22:36:17 +0300 Subject: [PATCH 2/2] fix typo in build.gradle --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 6da61949..fd24a6ec 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,7 +25,7 @@ if (isNewArchitectureEnabled()) { android { def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION - if (apgVersion.tokenize('.')[0].toInteger() >= 7) { + if (agpVersion.tokenize('.')[0].toInteger() >= 7) { namespace "com.reactnativedocumentpicker" } compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')