Find startActivityForResult calls
ProprietarystartActivityForResult was deprecated in AndroidX Activity 1.2 / Fragment 1.3 in favor of the Activity Result APIs (registerForActivityResult(ActivityResultContracts.X) { result -> … }). The new API survives process death, decouples the launcher from the lifecycle owner, and removes the per-screen onActivityResult switch.
org. openrewrite. kotlin. android. FindStartActivityForResult$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. android. FindStartActivityForResult$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.