From 2172ac0b3037dd9a9f5b65e0aee05e16cd7769d6 Mon Sep 17 00:00:00 2001 From: Christian Schmitz Date: Fri, 19 Jan 2024 14:48:54 +0100 Subject: [PATCH] build: hide binding adapters from Android Studio --- binding/adapters/build.gradle | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/binding/adapters/build.gradle b/binding/adapters/build.gradle index 325b97c..44eef14 100644 --- a/binding/adapters/build.gradle +++ b/binding/adapters/build.gradle @@ -34,9 +34,11 @@ extension.subprojects { if (android.buildFeatures.dataBinding) return adapters.android { - productFlavors.register name - sourceSets.named(name) { - root "$projectDir/src/main" + if (!System.getProperty('idea.sync.active')?.toBoolean()) { + productFlavors.register name + sourceSets.named(name) { + root "$projectDir/src/main" + } } }