Skip to main content

Posts

Featured

DataStore / SharedPreferences 2026 - Part 2 of 2

DataStore / SharedPreferences (Part 2 of 2) Introduction In Part 1 , we covered the basic implementation of a textbook DataStore  and how we should no longer be using SharedPreferences. If you haven't had the chance to read that yet, I do recommend taking a quick look. It is a quick read for experienced Compose users. In this, we will focus on improving our code to make it easier to manage, more pleasurable to work with, and more scalable (using DRY ). As this is aimed toward more experienced programmers, we can also add a bit more detail about some of my solutions. This will also be quite dense. Again, I'm using objects to wrap things to read this if you want to know why I wrap examples in objects . Note: For this blog, I will not group ViewModel actions together into a sealed interface (Action Sealed Class / UI Event Sealed Class) as I don't want to introduce new concepts to people who are not already familiar with them. If you are familiar with this pattern, I...

Latest Posts

Objects with Composables!??

DataStore / SharedPreferences 2026 - Part 1 of 2

KMP AGP 9.0.0 - Android Application to Library Migration