Skip to content

patrice-dev/DataStoreRecipe

Repository files navigation

This repository shows a basic implementation of Jetpack DataStore in an Android.

Features

  • Store user preferences with Preferences DataStore
  • Store typed data using Proto DataStore
  • Uses Kotlin Coroutines and Flow for async operations
  • Integrated with Hilt for dependency injection

Why DataStore?

  • Asynchronous avoids blocking the main thread (ARN)
  • Consistent handles failures safely
  • Transactional all changes are applied together

About

Configuration of DataStore with preference and proto file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages