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

Proprietary

Resources.getColor(int) was deprecated in API 23 — it doesn't take a theme. Replace with ContextCompat.getColor(context, id), which threads the theme through and respects ?attr references.

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