GrenderG / Prefs
Licence: gpl-3.0
Simple Android SharedPreferences wrapper.
Stars: ✭ 125
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Prefs
Secured Preference Store
A cryptography library and a SharedPreferences wrapper for Android that encrypts the content with 256 bit AES encryption. The Encryption key is securely stored in device's KeyStore.
Stars: ✭ 562 (+349.6%)
Mutual labels: sharedpreferences
Easyandroid
一系列简单、轻量、方便的Android开发工具集合(持续更新中),包括Android动态权限、SharedPreferences、反射、日志、Toast、Bundle、MVP、线程池、Html、图文混排、蒙层引导、拍照、图库选择等
Stars: ✭ 1,039 (+731.2%)
Mutual labels: sharedpreferences
Contacts
A flutter project with Implementation of a Contacts app in 4 ways (API, Custom, Preferences and Sqflite).
Stars: ✭ 100 (-20%)
Mutual labels: sharedpreferences
Shpref Library
💾 Android Kotlin library. Shared preferences wrapper. (2020)
Stars: ✭ 16 (-87.2%)
Mutual labels: sharedpreferences
Easypreferences
This class simplifies calls to SharedPreferences in a line of code. It can also do more like: saving a list of strings, integers and saving images. All in 1 line of code!
Stars: ✭ 34 (-72.8%)
Mutual labels: sharedpreferences
Secure Pref Manager
Secure Preference Manager for android. It uses various Encryption to protect your application's Shared Preferences.
Stars: ✭ 75 (-40%)
Mutual labels: sharedpreferences
Binaryprefs
Rapidly fast and lightweight re-implementation of SharedPreferences which stores each preference in files separately, performs disk operations via NIO with memory mapped byte buffers and works IPC (between processes). Written from scratch.
Stars: ✭ 484 (+287.2%)
Mutual labels: sharedpreferences
Movieapp
🎬 MovieApp is a Flutter application built to demonstrate the use of modern development tools with best practices implementation like Modularization, BLoC, Dependency Injection, Dynamic Theme, Cache, Shimmer, Testing, Flavor, CI/CD, etc.
Stars: ✭ 117 (-6.4%)
Mutual labels: sharedpreferences
Android Debug Database
A library for debugging android databases and shared preferences - Make Debugging Great Again
Stars: ✭ 7,946 (+6256.8%)
Mutual labels: sharedpreferences
Sharedchamber
Android Secure SharedPreferences Using Facebook Conceal Encryption
Stars: ✭ 96 (-23.2%)
Mutual labels: sharedpreferences
Typedvalue
Tiny library to simplify access to SharedPreferences, Bundle or any other key-value storage
Stars: ✭ 18 (-85.6%)
Mutual labels: sharedpreferences
Multiplatform Preferences
Kotlin Multi Platform Preferences, for android an ios : SharedPreferences & NSUserDefault
Stars: ✭ 76 (-39.2%)
Mutual labels: sharedpreferences
Kotpref
Kotpref - Android SharedPreferences delegation library for Kotlin
Stars: ✭ 618 (+394.4%)
Mutual labels: sharedpreferences
Kripton
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR.
Stars: ✭ 110 (-12%)
Mutual labels: sharedpreferences
Materialpreferences
A highly flexible set of lovely looking views that provides functionality of preferences.
Stars: ✭ 495 (+296%)
Mutual labels: sharedpreferences
Easysp
A SharedPreferences wrapper that has a fluent interface to store data
Stars: ✭ 75 (-40%)
Mutual labels: sharedpreferences
Secure Preferences
Android Shared preference wrapper than encrypts the values of Shared Preferences. It's not bullet proof security but rather a quick win for incrementally making your android app more secure.
Stars: ✭ 1,527 (+1121.6%)
Mutual labels: sharedpreferences
React Native Encrypted Storage
React Native wrapper around SharedPreferences and Keychain to provide a secure alternative to Async Storage
Stars: ✭ 110 (-12%)
Mutual labels: sharedpreferences
Xpref
A SharedPreferences' wrapper that truly supported sharing data across multi-process
Stars: ✭ 80 (-36%)
Mutual labels: sharedpreferences
Prefs
Simple Android SharedPreferences
wrapper.
Repository
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
...
compile 'com.github.GrenderG:Prefs:1.3'
}
Usage
This is the basic usage, you can read values (specifying a default value or not) and write values like so:
Prefs.with(yourContext).readInt(YOUR_KEY_VALUE);
Prefs.with(yourContext).readInt(YOUR_KEY_VALUE, defaultValue);
Prefs.with(yourContext).writeInt(YOUR_KEY_VALUE, valueToStore);
You can also specify a custom name for the preferences' name:
Prefs.with(yourContext, "CUSTOM_NAME").readInt(YOUR_KEY_VALUE);
And force the re-instantiation of the Prefs instance:
Prefs.with(yourContext, true).readInt(YOUR_KEY_VALUE);
Prefs.with(yourContext, "CUSTOM_NAME", true).readInt(YOUR_KEY_VALUE);
You can also set and retrieve ordered String sets
and unordered String sets
.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].