From 0434a60437a3b5b27c5d69a1a2cbbf8577d06bca Mon Sep 17 00:00:00 2001 From: Herbert Poul Date: Sun, 20 Aug 2023 16:15:14 +0200 Subject: [PATCH] conditionally add namespace for AGP 8 support. --- android/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index bc3b3f9..a086a70 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -22,6 +22,10 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'com.markosyan.flutter_zxing' + } compileSdkVersion 31 externalNativeBuild {