From 48e6c761f18a49466806d9e04eaf99a7f406e82d Mon Sep 17 00:00:00 2001 From: Gokul Date: Tue, 20 Feb 2024 22:29:53 +0530 Subject: [PATCH] Conditional for compatibility with AGP <4.2. --- packages/realm/android/build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/realm/android/build.gradle b/packages/realm/android/build.gradle index 21b286f03..f7f481174 100644 --- a/packages/realm/android/build.gradle +++ b/packages/realm/android/build.gradle @@ -22,6 +22,12 @@ rootProject.allprojects { apply plugin: 'com.android.library' android { + + // Conditional for compatibility with AGP <4.2. + if (project.android.hasProperty("namespace")) { + namespace 'io.realm' + } + compileSdkVersion 28 defaultConfig {