Krate Versions Save

A SharedPreferences wrapper powered by Kotlin delegates

2.0.0-RELEASE

2 years ago

🎉 New major release! 🎉

The most important changes:

  • Krate now uses chained withDefault calls on delegates for setting default values.
  • Properties no longer require you to provide a key. If no key is provided, the property's name is used instead.

Huge thanks to ivadyistvan for his contributions for these changes.

Some smaller updates:

  • The previously deprecated validator functions have now been removed. Use chained method calls for this feature too.

For all changes, see https://github.com/AutSoft/Krate/pull/30

1.2.0-RELEASE

2 years ago

This is the last 1.x version of Krate. You can find the old version of the README documenting the APIs of 1.x here.


  • Fixed Kotlinx-based delegates custom Json instances being set.
  • Serializing Krate functions (moshiPref, kotlinxPref, gsonPref) now return a PropertyDelegateProvider instead of a ReadWriteProperty. Use site source code remains identical, delegate properties to these functions using by.
  • Old, two-parameter validation methods are now deprecated with an error. Please use a chained validate {} call after a regular delegate function instead.
  • Delegates now fetch and store their adapter/serializer immediately when they are created.
  • Updated Kotlin version to 1.5.31
  • Compile and target SDK 31

For all changes, see https://github.com/AutSoft/Krate/pull/24

1.1.0-RELEASE

2 years ago
  • Dependency version updates
  • Publishing set updates

See changes here https://github.com/AutSoft/Krate/pull/22/files

1.0.0-RELEASE

3 years ago

Krate has been stable for a while, this is a long-awaited bump to 1.0.0 to match it.

This release comes with two new features / changes:

  • Support for kotlinx.serialization via the krate-kotlinx artifact
  • Simplified validation APIs (see updated README)

0.5.0-RELEASE

3 years ago

Updated Kotlin version, cleaned up some internals of the Moshi integration, marked some internal APIs as opt-in so that clients don't build on them accidentally.

For a full list of changes, see https://github.com/AutSoft/Krate/pull/13

0.4.0-RELEASE

3 years ago

Added Moshi support.

0.3.0-RELEASE

4 years ago

What's new:

  • Krate is now AndroidX-based
  • Lots of version bumps (Kotlin 1.3.50, SDK 29, and more!)