You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ EasyPrefs is library for the android SharedPreferences or we can say it wrapper
6
6
7
7
It support all Primitive Data Type and String Set more api will be added soon.
8
8
9
-
For, the secure operation used AES encryption <= 20 API Level, and for 21 >= used android provided encrypted shared preferences in both case you got same output your key and value both are stored securly.
9
+
For, the secure operation used AES encryption <= 20 API Level, and for 21 >= used android provided encrypted shared preferences in both case you got same output your key and value both are stored securely.
10
10
11
11
This library is developed in the Kotlin and supported both language `Kotlin` as well as `Java` with the same practices.
12
12
@@ -18,8 +18,6 @@ Gradle:
18
18
```groovy
19
19
allprojects {
20
20
repositories {
21
-
google()
22
-
jcenter()
23
21
maven { url 'https://jitpack.io' }
24
22
}
25
23
}
@@ -103,6 +101,8 @@ Prefs.has().key("KEY");
103
101
Prefs.has(fileName).key("KEY");
104
102
Prefs.has(context).key("KEY");
105
103
Prefs.has(context, fileName).key("KEY");
104
+
105
+
Prefs.has().empty();
106
106
```
107
107
- Give boolean value if key exists then true else false.
108
108
@@ -121,12 +121,14 @@ commit() or .apply()
121
121
#### Clear Operation
122
122
123
123
```kotlin
124
-
Prefs.clear().all().
125
-
Prefs.clear(fileName).all().
126
-
Prefs.clear(context).all().
127
-
Prefs.clear(context, fileName).all().
124
+
Prefs.clear().all()
125
+
Prefs.clear(fileName).all()
126
+
Prefs.clear(context).all()
127
+
Prefs.clear(context, fileName).all()
128
128
129
129
.commit() or .apply()
130
+
131
+
Note:for, securely operation used same Prefs.clear() operation.
130
132
```
131
133
- After the clear operation commit and apply call mandatory.
132
134
@@ -135,10 +137,9 @@ For, all the read, write, clear, has, remove support context and file name manua
135
137
If you pass context manually then no need to initialize lib on the application class, For, more information refer [here](app/src/androidTest/java/com/sample/easyprefs)
136
138
137
139
## Future Scope
138
-
- has and remove support provided to secure operations.
139
140
- add sorting on the Set so get direct sorted data.
140
-
- to make life easier adding more api in near future
141
141
- callback extend as we already have in the preferences.
142
+
- provide suggestions to make this lib more helpful.
0 commit comments