- Notifications
You must be signed in to change notification settings - Fork392
✔️ Secure, simple key-value storage for Android
License
NotificationsYou must be signed in to change notification settings
orhanobut/hawk
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Secure, simple key-value storage for android
This version has no backward compatibility with Hawk 1+ versions. If you still want to use old versions,check here
compile"com.orhanobut:hawk:2.0.1"
Hawk.init(context).build();
Save any type (Any object, primitives, lists, sets, maps ...)
Hawk.put(key,T);
Get the original value with the original type
Tvalue =Hawk.get(key);
Delete any entry
Hawk.delete(key);
Check if any key exists
Hawk.contains(key);
Check total entry count
Hawk.count();
Get crazy and delete everything
Hawk.deleteAll();
- 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(newNoEncryption()) .setLogInterceptor(newMyLogInterceptor()) .setConverter(newMyConverter()) .setParser(newMyParser()) .setStorage(newMyStorage()) .build();
Copyright 2016 Orhan ObutLicensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.
About
✔️ Secure, simple key-value storage for Android
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published