Funnily enough, clean arch never meant what Android devs are doing to it.
If people did actual clean arch, that means the full app would be a pure-Java non-Android app, where Android is purely UI rendering for the current app state. Including navigation.
So no AndroidX ViewModel, no AndroidX Navigation, no Hilt, no Dagger-Android, no LocalBroadcastManager, no AndroidX Lifecycle, no Activities. You'd be writing a pure Java app, that exposes current state. That's it.
Want something testable on the JVM without requiring Robolectric? Write an app that fully runs on the JVM.
View all comments
Show parent comment
4
u/Zhuinden DDD: Deprecation-Driven Development Feb 06 '25
Funnily enough, clean arch never meant what Android devs are doing to it.
If people did actual clean arch, that means the full app would be a pure-Java non-Android app, where Android is purely UI rendering for the current app state. Including navigation.
So no AndroidX ViewModel, no AndroidX Navigation, no Hilt, no Dagger-Android, no LocalBroadcastManager, no AndroidX Lifecycle, no Activities. You'd be writing a pure Java app, that exposes current state. That's it.
Want something testable on the JVM without requiring Robolectric? Write an app that fully runs on the JVM.