Skip to content

Commit

Permalink
build: hide binding adapters from Android Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
tynn committed Jan 19, 2024
1 parent 5feaa33 commit 2172ac0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions binding/adapters/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}

Expand Down

0 comments on commit 2172ac0

Please sign in to comment.