From 0188e009c00f18ae9084f4b9bf60851d3e88fb35 Mon Sep 17 00:00:00 2001 From: Nick Kleban <64905459+nvkleban@users.noreply.github.com> Date: Mon, 8 Apr 2024 00:01:20 +0200 Subject: [PATCH] Fix: #346 Voyager hilt support broken with Dagger 2.51 (#388) --- gradle/libs.versions.toml | 2 +- .../cafe/adriel/voyager/hilt/VoyagerHiltViewModelFactories.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 348cdcbb..471b23c6 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -11,7 +11,7 @@ kotlin = "1.9.21" kodein = "7.21.2" koin = "3.5.3" koin-compose = "1.1.2" -hilt = "2.49" +hilt = "2.51.1" leakCanary = "2.9.1" appCompat = "1.6.1" lifecycle = "2.6.1" diff --git a/voyager-hilt/src/main/java/cafe/adriel/voyager/hilt/VoyagerHiltViewModelFactories.kt b/voyager-hilt/src/main/java/cafe/adriel/voyager/hilt/VoyagerHiltViewModelFactories.kt index 153514a1..88a36930 100644 --- a/voyager-hilt/src/main/java/cafe/adriel/voyager/hilt/VoyagerHiltViewModelFactories.kt +++ b/voyager-hilt/src/main/java/cafe/adriel/voyager/hilt/VoyagerHiltViewModelFactories.kt @@ -23,7 +23,7 @@ public object VoyagerHiltViewModelFactories { } internal class InternalViewModelFactory @Inject internal constructor( - @HiltViewModelMap.KeySet private val keySet: Set, + @HiltViewModelMap.KeySet private val keySet: Map, Boolean>, private val viewModelComponentBuilder: ViewModelComponentBuilder ) { fun fromActivity(