Open johan12345 opened 2 years ago
As a sidenote, I've taken a look at a Jetpack Compose for another app I'm maintaining, and I have to say, it's really awesome. (I don't like databinding, to be honest.)
It may require re-architecting some activities to achieve a fully Compose-based UI, but that's probably worth it. It's also possible to mix Compose-based and View-based code for easier step-by-step integration: https://developer.android.com/jetpack/compose/interop
Apparently there is a replacement for Kotlin Annotation Processing (KAPT) called Kotlin Symbol Processing (KSP) that significantly speeds up build times. The libraries we are using in EVMap that need annotation processing, Moshi and Room, have already been ported to KSP.
The only thing that is preventing us from using KSP currently is Android Databinding, which still requires KAPT. According to some comments on Reddit, there are no plans to port Databinding to KSP, though I have found no official source for that.
So maybe we need to move away from databinding to be able to switch to KSP? Most of the app already uses ViewModels, so it should not be too complicated to switch to simple ViewBinding + manual code for connecting the ViewModels and Views. But still, it will be a significant effort, so not sure if the gain in build performance is worth it.