What: DataStore objects are the best way of storing key-value pairs. Old: https://developer.android.com/reference/kotlin/android/content/SharedPreferences New: https://developer.android.com/topic/libraries/architecture/datastore How: Replace all instances of SharedPreferences with DataStore objects.