https://github.com/tgx-android/leveldb
LevelDB java wrapper that implements SharedPreferences.
https://github.com/tgx-android/leveldb
Last synced: 11 months ago
JSON representation
LevelDB java wrapper that implements SharedPreferences.
- Host: GitHub
- URL: https://github.com/tgx-android/leveldb
- Owner: TGX-Android
- License: apache-2.0
- Created: 2021-01-18T02:30:31.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-29T20:07:46.000Z (about 1 year ago)
- Last Synced: 2025-05-29T21:23:49.211Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 83 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LevelDB Preferences
Java wrapper for [Google's LevelDB](https://github.com/google/leveldb) that implements [SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences) interface. Additionally, it supports iteration by prefix, array storage and lookup by value.
For API documentation refer to javadoc inside [LevelDB.java](src/main/java/me/vkryl/leveldb/LevelDB.java).
## TODOs
* `registerOnSharedPreferenceChangeListener` and `unregisterOnSharedPreferenceChangeListener` are unsupported, but in case you need them, they should be relatively easy to implement.
* [LevelDB](src/main/java/me/vkryl/leveldb/LevelDB.java) object follows a popular native handle pattern. However, according to [this Google I/O talk](https://www.youtube.com/watch?v=7_caITSjk1k), such objects should be designed in a different way.
* Building is currently dependent on `module-plugin`, `cmake-plugin` and `LibraryVersions.ANNOTATIONS`, which must be defined inside `buildSrc/build.gradle.kts` of the root project.
* Ability to add this library to your project through Maven dependency.
## Licence
`LevelDB Preferences` is licensed under the terms of the Apache License, Version 2.0. See [LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) for more information.