Skip to content

Commit b3cc6a9

Browse files
committed
chore: revert deprecation on Jetpack Compose APIs.
1 parent 573b264 commit b3cc6a9

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/KodeinViewModelScopedFactory.kt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ import org.kodein.di.direct
88
import org.kodein.type.TypeToken
99
import org.kodein.type.erased
1010

11-
@Deprecated(
12-
message = "Use the new Compose Multiplatform KodeinViewModelScopedFactory instead from Kodein Framework Compose",
13-
ReplaceWith("KodeinViewModelScopedFactory", "org.kodein.di.compose.viewmodel"),
14-
DeprecationLevel.WARNING
15-
)
1611
public class KodeinViewModelScopedFactory<A : Any>(
1712
private val di: DI,
1813
private val argType: TypeToken<A>,
@@ -23,11 +18,6 @@ public class KodeinViewModelScopedFactory<A : Any>(
2318
di.direct.Factory(argType, erased(modelClass), tag).invoke(arg)
2419
}
2520

26-
@Deprecated(
27-
message = "Use the new Compose Multiplatform KodeinViewModelScopedSingleton instead from Kodein Framework Compose",
28-
ReplaceWith("KodeinViewModelScopedSingleton", "org.kodein.di.compose.viewmodel"),
29-
DeprecationLevel.WARNING
30-
)
3121
public class KodeinViewModelScopedSingleton(
3222
private val di: DI,
3323
private val tag: String? = null,

framework/compose/kodein-di-framework-android-x-compose/src/main/kotlin/org/kodein/di/compose/android/viewModel.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,6 @@ import org.kodein.type.generic
2222
* @throws DI.DependencyLoopException If the value construction triggered a dependency loop.
2323
*/
2424
@Composable
25-
@Deprecated(
26-
message = "Use the new Compose Multiplatform rememberViewModel instead from Kodein Framework Compose",
27-
ReplaceWith("rememberViewModel", "org.kodein.di.compose.viewmodel"),
28-
DeprecationLevel.WARNING
29-
)
30-
@Suppress("DEPRECATION")
3125
public inline fun <reified VM : ViewModel> rememberViewModel(
3226
tag: String? = null
3327
): ViewModelLazy<VM> = with(localDI()) {

0 commit comments

Comments
 (0)