Skip to content

Commit

Permalink
Add dirty hack back
Browse files Browse the repository at this point in the history
  • Loading branch information
mars885 committed Sep 16, 2024
1 parent aac35a0 commit 169fe4a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ subprojects {
jvmToolchain(rootProject.libs.versions.jvmToolchain.get().toInt())
}
}

// https://stackoverflow.com/a/70348822/7015881
// https://issuetracker.google.com/issues/238425626
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group == "androidx.lifecycle" && requested.name == "lifecycle-viewmodel-ktx") {
useVersion(rootProject.libs.versions.viewModel.get())
}
}
}
}

val clean by tasks.registering(Delete::class) {
Expand Down
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ splash = "1.0.1"
browser = "1.8.0"
room = "2.6.1"
dataStore = "1.1.1"
viewModel = "2.8.3" # to be deleted when the linked issue at use site is fixed

# Compose
composeBom = "2024.09.01"
Expand Down

0 comments on commit 169fe4a

Please sign in to comment.