Releases: HubbleCommand/preftils
Releases · HubbleCommand/preftils
v1.3.1 better defaults support
Actually forgot to INCLUDE the appropriate commits for additional default support in the initial 1.3.1 release.
v1.3.0 improved get default support
- Can now set default return value when fetching preferences, instead of only being able to use the default value set in the Preference
v1.2.2 Minor upgrade
- upgrade AGP 8.5.0 -> 8.5.1
- junit 1.1.5 -> 1.2.1
- espresso-core 3.5.1 -> 3.6.1
v1.2.1 Minor upgrade
- Upgrade Android Gradle Plugin from 8.4.1 to 8.5.0
- Downgrade Java SDK version from 21 down to 17
- Clarify some things in the README
v1.2.0 Serialization + Java support
- Removed ICodable interface (replaced by serialization support)
- Added full Java support with Java classes
- Supports Java Serialization
- Add support for Kotlin Serialization
- Additional documentation, including a sample app
v1.1.0 Custom type support with ICodable
Features
ICodable
: new interface that can be used with this package's SharedPreferences extension methods, allowing you to use your custom classes with SharedPreferences with ease
v1.0.0 Initial Release
Re-release of Preftils package, starting at v1.0.0.
Previously had V1.0.0, V1.0.1, V1.0.2, V1.0.3,and V1.0.4, however only the last one worked. The first three versions had issues with JitPack.
Features
Added Preference
data class to facilitate the clean definition of Android SharedPreferences.
Two new helper methods:
SharedPreferences.get(preference: Preference<T>)
: easily retrieve a shared preferences value in a type-safe waySharedPreferences.Editor.put(preference: Preference<T>, value: T)
: easily set a shared preferences value in a type-safe way