SharedPreference usage made fun in Kotlin
Make casting only in non-nullable
Moved in Serializer
from Class to Type
Extract Gson to separate module:
compile "com.marcinmoskala:PreferenceHolder-gson-serializer:$preference_holder_version"
Now serializer needs to be specified for types not supported by SharedPreference:
PreferenceHolder.serializer = GsonSerializer(Gson())
Clean is now applied to specific PreferenceHolder.
The release is introducing test mode, that makes the library to work just like fields with no SharedPreferences binding at all. This allows to easily introduce unit tests on UseCases or Presenters that are using PreferencesHolder.
Version introduces testing mode, cleanup, switch with bindings to property with backup only.
Support for collections