Find onRequestPermissionsResult overrides

Proprietary

Override of Activity.onRequestPermissionsResult / Fragment.onRequestPermissionsResult — the result-callback half of the deprecated requestPermissions(...) pair. Replace with a registerForActivityResult(ActivityResultContracts.RequestPermission) lambda.

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