Find sharedPrefs.edit() calls

Proprietary

Raw edit() calls predate AndroidX SharedPreferences.edit { … }, the Kotlin extension that handles apply/commit for the caller. Replace each prefs.edit().put*(...).apply() chain with prefs.edit { put*(...) } — same disk write, less ceremony, and harder to drop the apply by accident.

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