Find public MutableLiveData properties
ProprietaryExposing MutableLiveData<T> (or MutableStateFlow<T>) to observers lets them mutate the model from the consumer side. The convention is to keep the mutable handle private and expose a read-only LiveData<T> / StateFlow<T> getter, so the owner is the only one that can publish updates.
org. openrewrite. kotlin. android. FindPublicMutableLiveDataProperty$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. android. FindPublicMutableLiveDataProperty$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.