Hawk 2.0
Secure, simple key-value storage for android
Initialize
Hawk.init(context).build();
Use
Save any type (Any object, primitives, lists, sets, maps ...)
Get the original value with the original type
Delete unwanted data
Check if any key exists
Check total count
Get crazy and delete everything
Download
compile 'com.orhanobut:hawk:2.0.1'
More options
- Everything is pluggable, therefore you can change any layer with your custom implementation.
- NoEncryption implementation is provided out of box If you want to disable crypto.
Hawk.init(context)
.setEncryption(new NoEncryption())
.setLogInterceptor(new MyLogInterceptor())
.setConverter(new MyConverter())
.setParser(new MyParser())
.setStorage(new MyStorage())
.build();
Post a Comment