Find Android modernization candidates

Proprietary

Patterns that work but predate the modern Android toolchain: manual Parcelable (@Parcelize), java.io.Serializable on Android transports, RxJava imports (coroutines + Flow), Dagger*Component.builder() (Hilt), direct ViewModelProvider construction (by viewModels()), ObjectAnimator (Compose animation APIs), and Runtime.exec (audit for app-sandbox fit).

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

Recipe list

It runs these recipes, in this order.

  1. Find Kotlin classes implementing Parcelable without @Parcelize
  2. Find Kotlin classes implementing java.io.Serializable
  3. Find io.reactivex.* imports
  4. Find Dagger*Component.builder().build() patterns
  5. Find ViewModelProvider(...) direct constructions
  6. Find ObjectAnimator.ofInt/ofFloat(...) calls
  7. Find Runtime.exec(...) / ProcessBuilder.start() calls