Skip to content

Commit

Permalink
chore: revert deprecation on Jetpack Compose APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Nov 29, 2024
1 parent 573b264 commit b3cc6a9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<A : Any>(
private val di: DI,
private val argType: TypeToken<A>,
Expand All @@ -23,11 +18,6 @@ public class KodeinViewModelScopedFactory<A : Any>(
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <reified VM : ViewModel> rememberViewModel(
tag: String? = null
): ViewModelLazy<VM> = with(localDI()) {
Expand Down

0 comments on commit b3cc6a9

Please sign in to comment.