Find android.preference.PreferenceManager imports

Proprietary

The framework android.preference.* package was deprecated in API 29. Move to androidx.preference.* (drop-in replacement) or, for KV state, Jetpack DataStore — which composes with coroutines and Flow instead of running on the main thread.

org.openrewrite.kotlin.android.FindPreferenceManagerImport$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.android.FindPreferenceManagerImport$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.