What's modern approach to handling Preferences (UI & Storage) in Compose?

This page summarizes the projects mentioned and recommended in the original post on /r/androiddev

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
InfluxDB high-performance time series database
Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
influxdata.com
featured
  1. GreenStash

    Simple FOSS android app to help you plan and manage your savings goals easily and establish the habit of saving money.

    I'm currently using SharedPrefs but there's problem with data types, for example someone who's not familiar with codebase may not know which keys store which type of data (strings, int, or boolean) without looking somewhere where that key is already used, i think overtime it'll become troublesome, that's why I'm planning to use something else which supports strong typing and can enforce static data types for keys when writing code instead of crashing in runtime like SharedPrefs

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. tivi

    Discontinued Tivi is a TV show tracking Android app, which connects to trakt.tv

    I have considered a few variants around this route. One easy way out would be just to launch a ComponentActivity with a PreferenceFragment like what Chris Banes does in TiVi ... but if you go with PreferenceFragment(Compat) it seems you are kinda stuck with SharedPreferences. If one attempts to supply DataStore wrapped in PreferenceDataStore, it seems types get messed up (TextPreference will store as a String, even if the InputType is number, etc).

  4. Flixplorer

    Jetpack Compose project showcasing Android MVVM guideline published on https://developer.android.com/topic/architecture#recommended-app-arch

    If you're interested, you can check out my implementation on GitHub. Here's the GitHub repo link https://github.com/TheSomeshKumar/Flickophile/../ui/screens/settings/SettingsScren.kt

  5. nowinandroid

    A fully functional Android app built entirely with Kotlin and Jetpack Compose

    Build your own views/screens. Abandon (pre-made) fragments as soon as you can and you will be a happier developer. Follow the Compose+ViewModel+DataStore+Repository pattern like https://github.com/android/nowinandroid/tree/main/feature/settings/src/main/java/com/google/samples/apps/nowinandroid/feature/settings

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Do you have an open source (base) project using latest tech?

    2 projects | /r/androiddev | 18 Jun 2023
  • Simple Preferences & Proto DataStore Demo App

    4 projects | dev.to | 17 Jun 2023
  • "outdated senior" needs your advice

    3 projects | /r/androiddev | 4 Dec 2022
  • It's Hacktoberfest time - Time to gear up your skill

    2 projects | dev.to | 1 Oct 2022
  • Anyone here who has bought Philipp Lackner's course for developing multi-module apps?

    2 projects | /r/androiddev | 4 May 2022

Did you know that Kotlin is
the 17th most popular programming language
based on number of references?