Find Android modernization candidates
ProprietaryPatterns 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$KtRecipemod 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.
- Find Kotlin classes implementing
Parcelablewithout@Parcelize - Find Kotlin classes implementing
java.io.Serializable - Find
io.reactivex.*imports - Find
Dagger*Component.builder().build()patterns - Find
ViewModelProvider(...)direct constructions - Find
ObjectAnimator.ofInt/ofFloat(...)calls - Find
Runtime.exec(...)/ProcessBuilder.start()calls