From 9cd96685e03027165cdf6e555781134f44eaebf2 Mon Sep 17 00:00:00 2001 From: Gabriel Souza Date: Tue, 21 May 2024 10:55:13 +0200 Subject: [PATCH] Fix changes --- voyager-lifecycle-kmp/api/android/voyager-lifecycle-kmp.api | 6 +++--- voyager-lifecycle-kmp/api/desktop/voyager-lifecycle-kmp.api | 6 +++--- .../kotlin/cafe/adriel/voyager/jetpack/LifecycleProvider.kt | 2 +- .../kotlin/cafe/adriel/voyager/jetpack/navigator.kt | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/voyager-lifecycle-kmp/api/android/voyager-lifecycle-kmp.api b/voyager-lifecycle-kmp/api/android/voyager-lifecycle-kmp.api index ff3fa98f..b0607fbe 100644 --- a/voyager-lifecycle-kmp/api/android/voyager-lifecycle-kmp.api +++ b/voyager-lifecycle-kmp/api/android/voyager-lifecycle-kmp.api @@ -1,12 +1,12 @@ -public final class cafe/adriel/voyager/jetpack/JetpackProviderKt { +public final class cafe/adriel/voyager/jetpack/LifecycleProviderKt { } public final class cafe/adriel/voyager/jetpack/NavigatorKt { } -public final class cafe/adriel/voyager/jetpack/NavigatorLifecycleJetpackOwnerKt { +public final class cafe/adriel/voyager/jetpack/NavigatorLifecycleKMPOwnerKt { } -public final class cafe/adriel/voyager/jetpack/VoyagerJetpackOwner$Companion { +public final class cafe/adriel/voyager/jetpack/VoyagerLifecycleKMPOwner$Companion { } diff --git a/voyager-lifecycle-kmp/api/desktop/voyager-lifecycle-kmp.api b/voyager-lifecycle-kmp/api/desktop/voyager-lifecycle-kmp.api index ff3fa98f..b0607fbe 100644 --- a/voyager-lifecycle-kmp/api/desktop/voyager-lifecycle-kmp.api +++ b/voyager-lifecycle-kmp/api/desktop/voyager-lifecycle-kmp.api @@ -1,12 +1,12 @@ -public final class cafe/adriel/voyager/jetpack/JetpackProviderKt { +public final class cafe/adriel/voyager/jetpack/LifecycleProviderKt { } public final class cafe/adriel/voyager/jetpack/NavigatorKt { } -public final class cafe/adriel/voyager/jetpack/NavigatorLifecycleJetpackOwnerKt { +public final class cafe/adriel/voyager/jetpack/NavigatorLifecycleKMPOwnerKt { } -public final class cafe/adriel/voyager/jetpack/VoyagerJetpackOwner$Companion { +public final class cafe/adriel/voyager/jetpack/VoyagerLifecycleKMPOwner$Companion { } diff --git a/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/LifecycleProvider.kt b/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/LifecycleProvider.kt index 868b50e4..e2c2c733 100644 --- a/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/LifecycleProvider.kt +++ b/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/LifecycleProvider.kt @@ -28,6 +28,6 @@ public fun ProvideNavigatorLifecycleKMPSupport( @ExperimentalVoyagerApi public class JetpackSupportProvider : NavigatorScreenLifecycleProvider { override fun provide(screen: Screen): List = - listOf(ScreenLifecycleStore.get(screen) {ScreenLifecycleJetpackOwner() }) + listOf(ScreenLifecycleStore.get(screen) { ScreenLifecycleKMPOwner() }) } diff --git a/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/navigator.kt b/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/navigator.kt index 9a82ea7e..7f67bef6 100644 --- a/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/navigator.kt +++ b/voyager-lifecycle-kmp/src/commonMain/kotlin/cafe/adriel/voyager/jetpack/navigator.kt @@ -15,7 +15,7 @@ import cafe.adriel.voyager.navigator.currentOrThrow @ExperimentalVoyagerApi @Composable public fun Navigator.rememberNavigatorViewModelStoreOwner(): ViewModelStoreOwner { - return rememberNavigatorJetpackOwner() + return rememberNavigatorLifecycleOwner() } @ExperimentalVoyagerApi