From f7611e9026e180b542cbc447a1d7780b3210c885 Mon Sep 17 00:00:00 2001 From: Marco4763 Date: Thu, 12 Oct 2023 14:44:32 +0100 Subject: [PATCH 1/2] Added the namespace property in build.gradle if the field is necessary. --- android/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index 054eeb10..5a1aa46b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,6 +23,10 @@ apply plugin: 'com.android.library' android { compileSdkVersion 28 + // Condition for namespace compatibility in AGP 8 + if (project.android.hasProperty("namespace")) { + namespace 'com.onesignal.flutter' + } defaultConfig { minSdkVersion 16 From 252dda24421b0b73cf6a0d849752d97aac381d16 Mon Sep 17 00:00:00 2001 From: Marco Domingos <66222324+Marco4763@users.noreply.github.com> Date: Thu, 21 Dec 2023 06:42:45 +0100 Subject: [PATCH 2/2] Update build.gradle --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 5a1aa46b..0bbdbc28 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,7 +23,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 28 - // Condition for namespace compatibility in AGP 8 + // Condition for namespace compatibility in AGP <4.2 if (project.android.hasProperty("namespace")) { namespace 'com.onesignal.flutter' }