Find ViewModelProvider(...) direct constructions

Proprietary

ViewModelProvider(this).get(MyViewModel::class.java) predates the by viewModels() / by activityViewModels() Kotlin property delegates. With Hilt, those delegates pick up the @HiltViewModel annotation — no factory plumbing needed at the call site.

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