From 169fe4a6090fdb6c493b0c854ed6cee3e3eba8b2 Mon Sep 17 00:00:00 2001 From: mars885 Date: Tue, 17 Sep 2024 02:50:54 +0300 Subject: [PATCH] Add dirty hack back --- build.gradle.kts | 10 ++++++++++ gradle/libs.versions.toml | 1 + 2 files changed, 11 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index ba9e3806..f2efaef1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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) { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0e6b5f3d..f801598e 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -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"