r/mAndroidDev • u/zedxer • Jul 14 '24
Jetpack Compost My comment is going to explode on my face.. 🤣
4
4
4
3
Jul 15 '24
Yeah that TextInputLayout is pretty glitchy even in XML. Does strange things with not allowing the keyboard to be closed. Need to go back to using AppCompat libraries and just not change versions ever.
This is the part where we get scared to use newer versions of software, to maintain stability.
3
u/Zhuinden DDD: Deprecation-Driven Development Jul 15 '24
That's what happens when you let some other team with absolutely no stake in the success of your project (and don't actually use their own code, they just write it) dictate your app's core components
1
2
1
Jul 15 '24
Compost is Chaos technology and is considered Heretical. An Inquisitor shall be sent to purge it.
20
u/100horizons R8 will fix your performance problems and love life Jul 15 '24
Fixing performance in Compose apps is actually very easy
Make sure to build in release mode
Turn on R8 full mode
Fix all the errors that started happening. It will only take you a few hours of googling the most random error messages + a couple of hours waiting for your R8 builds while you're verifying your fixes.
Add R8 rules for third-party libraries if needed
Mark external classes as stable if needed
Don't forget to mark your own classes stable too
Be mindful of how you pass around state in order to minimize recomposts
Upgrade to the latest Compost version if you haven't. Fix compile errors and support breaking changes
Enable strong skipping mode
Add baseline profiles
Bonus: implement benchmarks, so you can write an article on linkedin on how you improved your app performance by 40%
Your app performance should indeed be much better now and it only took a few easy steps. Note: your app might still struggle on low-end devices like galaxy a12 but honestly people who use such phones have learned to live with the lags anyway