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 23, 2024
1 parent 5feaa33 commit b74fc50
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit b74fc50

Please sign in to comment.