Find MutableLiveData allocations
ProprietaryIn Kotlin Android code, MutableStateFlow<T> is the modern equivalent. It integrates with structured concurrency, exposes the current value synchronously, and composes cleanly with Compose's collectAsState/collectAsStateWithLifecycle. Each MutableLiveData() here is a candidate for migration.
org. openrewrite. kotlin. android. FindMutableLiveDataAllocation$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. android. FindMutableLiveDataAllocation$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.