Find Context.registerReceiver(...) calls

Proprietary

On API 33+ registerReceiver(...) requires an explicit RECEIVER_EXPORTED / RECEIVER_NOT_EXPORTED flag — calls without it throw SecurityException. Migrate to ContextCompat.registerReceiver(...), which forwards the flag and is backwards-compatible.

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