persista

Small kotlin library for persisting _single instances_ of kotlin data classes (by erdo)

Persista Alternatives

Similar projects and alternatives to persista based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better persista alternative or higher similarity.

persista reviews and mentions

Posts with mentions or reviews of persista. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-31.
  • Any good examples of manual dependency injection?
    4 projects | /r/androiddev | 31 Jan 2022
    I use manual DI whenever I don't want to force Koin or Dagger on a project, or I want to keep things super simple. This method gives you either single instance or factory, no lazy initialization, and no scoping (you'd have to add the ViewModel scoped stuff) simple app that has it: https://github.com/erdo/persista/tree/main/example-app/src/main/java/foo/bar/example (dependencies constructed here): https://github.com/erdo/persista/blob/main/example-app/src/main/java/foo/bar/example/OG.kt (getting the dependencies into your UI here): https://github.com/erdo/persista/blob/main/example-app/src/main/java/foo/bar/example/ui/wallet/WalletsActivity.kt ``` private val wallet: Wallet = OG[Wallet::class.java] ``` another larger app example: https://github.com/erdo/apollo3-android-sample It looks quite like a ServiceLocator but the difference is these things are not statically referenced and can easily be mocked in tests
  • New Android Dev Sanity Check
    1 project | /r/androiddev | 29 Jun 2021
    If you actually want to serialize your data structures to a json file, I wrote a library to do it here https://github.com/erdo/persista bit it's really just one class, feel free to copy bits of it
  • Do you use SharedPreferences?
    2 projects | /r/androiddev | 26 Jun 2021
    I ended up doing something similar to store data classes because I wanted something in pure kotlin ( https://github.com/erdo/persista no encryption though).
  • library to persistently store kotlin data classes
    1 project | /r/androiddev | 15 May 2021
    I did a library, it lets you store single instances of kotlin data classes persistently with not much effort / boilerplate https://github.com/erdo/persista
  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic persista repo stats
4
7
5.9
20 days ago

erdo/persista is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of persista is Kotlin.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com