From b74fc50e872b11b58a641145ddd2dc16aa4995d6 Mon Sep 17 00:00:00 2001 From: Christian Schmitz Date: Tue, 23 Jan 2024 19:47:54 +0100 Subject: [PATCH] build: hide binding adapters from Android Studio --- binding/adapters/build.gradle | 8 +++++--- gradle/libs.versions.toml | 4 ++-- 2 files changed, 7 insertions(+), 5 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" + } } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3ed181c..ab9b1c5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] -android = "8.2.1" -compose-compiler = "1.5.7" +android = "8.2.2" +compose-compiler = "1.5.8" kotlin = "1.9.22" [plugins]