Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GuilhE/SharedPrefs-ktx
Save and load objects from SharedPreferences in a faster and simpler way with Kotlin Extensions 🎉
https://github.com/GuilhE/SharedPrefs-ktx
gson-converter kotlin-android kotlin-extensions moshi-converter sharedpreferences
Last synced: 9 days ago
JSON representation
Save and load objects from SharedPreferences in a faster and simpler way with Kotlin Extensions 🎉
- Host: GitHub
- URL: https://github.com/GuilhE/SharedPrefs-ktx
- Owner: GuilhE
- License: apache-2.0
- Created: 2019-09-28T21:45:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T17:20:37.000Z (about 2 years ago)
- Last Synced: 2024-08-02T19:38:22.102Z (4 months ago)
- Topics: gson-converter, kotlin-android, kotlin-extensions, moshi-converter, sharedpreferences
- Language: Kotlin
- Homepage: https://guilhe.github.io/SharedPrefs-ktx/
- Size: 648 KB
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-list - GuilhE/SharedPrefs-ktx - Save and load objects from SharedPreferences in a faster and simpler way with Kotlin Extensions 🎉 (Kotlin)
README
# SharedPrefs-ktx
[![codecov](https://codecov.io/gh/GuilhE/SharedPrefs-ktx/branch/master/graph/badge.svg)](https://codecov.io/gh/GuilhE/SharedPrefs-ktx) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SharedPrefs--ktx-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/7905)Save and load objects from SharedPreferences in a faster and simpler way.
This project is a "Kotlin extensions" version of [SharedPrefsUtils](https://github.com/GuilhE/SharedPrefsUtils)## Installation
To use with gson:
```groovy
implementation 'com.github.guilhe.sharedprefs-ktx:converter-gson:${LATEST_VERSION}'
```
[![Maven Central](https://img.shields.io/maven-central/v/com.github.guilhe.sharedprefs-ktx/converter-gson)](https://search.maven.org/search?q=g:com.github.guilhe.sharedprefs-ktx%20AND%20a:converter-gson)To use with moshi:
```groovy
implementation 'com.github.guilhe.sharedprefs-ktx:converter-moshi:${LATEST_VERSION}'
```
[![Maven Central](https://img.shields.io/maven-central/v/com.github.guilhe.sharedprefs-ktx/converter-moshi)](https://search.maven.org/search?q=g:com.github.guilhe.sharedprefs-ktx%20AND%20a:converter-moshi)## Usage
To use it with Gson check [here](converter-gson)
To use it with Moshi check [here](converter-moshi)## Dependencies
- [Gson](https://github.com/google/gson)
- [Moshi](https://github.com/square/moshi)
- [Timber](https://github.com/JakeWharton/timber)## Bugs and Feedback
For bugs, questions and discussions please use the [Github Issues]( https://github.com/GuilhE/SharedPrefs-ktx/issues).
## LICENSECopyright (c) 2019-present GuilhE
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License atUnless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.