diff --git a/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/KodeinViewModelScopedFactory.kt b/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/KodeinViewModelScopedFactory.kt index 54388ba2..7d87e457 100644 --- a/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/KodeinViewModelScopedFactory.kt +++ b/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/KodeinViewModelScopedFactory.kt @@ -8,11 +8,6 @@ import org.kodein.di.direct import org.kodein.type.TypeToken import org.kodein.type.erased -@Deprecated( - message = "Use the new Compose Multiplatform KodeinViewModelScopedFactory instead from Kodein Framework Compose", - ReplaceWith("KodeinViewModelScopedFactory", "org.kodein.di.compose.viewmodel"), - DeprecationLevel.WARNING -) public class KodeinViewModelScopedFactory( private val di: DI, private val argType: TypeToken, @@ -23,11 +18,6 @@ public class KodeinViewModelScopedFactory( di.direct.Factory(argType, erased(modelClass), tag).invoke(arg) } -@Deprecated( - message = "Use the new Compose Multiplatform KodeinViewModelScopedSingleton instead from Kodein Framework Compose", - ReplaceWith("KodeinViewModelScopedSingleton", "org.kodein.di.compose.viewmodel"), - DeprecationLevel.WARNING -) public class KodeinViewModelScopedSingleton( private val di: DI, private val tag: String? = null, diff --git a/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/viewModel.kt b/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/viewModel.kt index 9116dc98..1f9845e4 100644 --- a/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/viewModel.kt +++ b/framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/viewModel.kt @@ -22,12 +22,6 @@ import org.kodein.type.generic * @throws DI.DependencyLoopException If the value construction triggered a dependency loop. */ @Composable -@Deprecated( - message = "Use the new Compose Multiplatform rememberViewModel instead from Kodein Framework Compose", - ReplaceWith("rememberViewModel", "org.kodein.di.compose.viewmodel"), - DeprecationLevel.WARNING -) -@Suppress("DEPRECATION") public inline fun rememberViewModel( tag: String? = null ): ViewModelLazy = with(localDI()) {