Find resources.getDrawable(...) (one-arg) calls

Proprietary

Resources.getDrawable(int) was deprecated in API 22 — it doesn't take a theme. Replace with ResourcesCompat.getDrawable(resources, id, theme) to render themed drawables consistently across API levels.

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