How to use it
Android library to simplify reading and writing to SharedPreferences, never write code like this anymore prefs.edit().putString("someKey","someString").apply()
Just create a model with wanted properties and default values like the this:
Init Bulldog context in your application class.
bullDogCtx = applicationContext
Bulldog will generate a class from this specification with the name UserSettings. Use it like a normal object to access values, under the hood it uses Kotlin delegated properties to read and writes values to SharedPreferences.
If no name is specified in @Bulldog
annotation, the generated class will have the name of the specification object prefixed with Bulldog
Read values
Just access object property like a normal object
Write values
Clear values
Bulldog generates a clear method for each entry
Print information
Bulldog also generates a toString()
human readable implementation
Last updated