├── .github
└── ISSUE_TEMPLATE
│ └── feature_request.md
├── EasyDataStorage.iml
├── README.md
├── _config.yml
├── app
├── app.iml
├── build.gradle
├── build
│ ├── generated
│ │ └── source
│ │ │ ├── buildConfig
│ │ │ └── debug
│ │ │ │ └── com
│ │ │ │ └── neeloy
│ │ │ │ └── lib
│ │ │ │ └── data
│ │ │ │ └── storage
│ │ │ │ └── BuildConfig.java
│ │ │ └── r
│ │ │ └── debug
│ │ │ └── com
│ │ │ └── neeloy
│ │ │ └── lib
│ │ │ └── data
│ │ │ └── storage
│ │ │ └── R.java
│ ├── intermediates
│ │ ├── attr
│ │ │ └── R.txt
│ │ ├── incremental
│ │ │ ├── compileDebugAidl
│ │ │ │ └── dependency.store
│ │ │ └── packageDebugResources
│ │ │ │ ├── compile-file-map.properties
│ │ │ │ ├── merged.dir
│ │ │ │ └── values
│ │ │ │ │ └── values.xml
│ │ │ │ └── merger.xml
│ │ ├── manifests
│ │ │ ├── aapt
│ │ │ │ └── debug
│ │ │ │ │ ├── AndroidManifest.xml
│ │ │ │ │ └── output.json
│ │ │ └── full
│ │ │ │ └── debug
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── output.json
│ │ ├── packaged_res
│ │ │ └── debug
│ │ │ │ └── values
│ │ │ │ └── values.xml
│ │ ├── res
│ │ │ └── symbol-table-with-package
│ │ │ │ └── debug
│ │ │ │ └── package-aware-r.txt
│ │ └── symbols
│ │ │ └── debug
│ │ │ └── R.txt
│ └── outputs
│ │ └── logs
│ │ └── manifest-merger-debug-report.txt
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── neeloy
│ │ └── lib
│ │ └── data
│ │ └── storage
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── java
│ │ └── com
│ │ │ └── neeloy
│ │ │ └── lib
│ │ │ └── data
│ │ │ └── storage
│ │ │ ├── StorageUtility.java
│ │ │ └── utils
│ │ │ ├── AbsPrefs.java
│ │ │ ├── Prefs.java
│ │ │ └── TinyDB.java
│ └── res
│ │ └── values
│ │ └── strings.xml
│ └── test
│ └── java
│ └── com
│ └── neeloy
│ └── lib
│ └── data
│ └── storage
│ └── ExampleUnitTest.java
├── build.gradle
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── local.properties
└── settings.gradle
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | labels:
5 |
6 | ---
7 |
8 | **Is your feature request related to a problem? Please describe.**
9 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10 |
11 | **Describe the solution you'd like**
12 | A clear and concise description of what you want to happen.
13 |
14 | **Describe alternatives you've considered**
15 | A clear and concise description of any alternative solutions or features you've considered.
16 |
17 | **Additional context**
18 | Add any other context or screenshots about the feature request here.
19 |
--------------------------------------------------------------------------------
/EasyDataStorage.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | EasyDataStorage
2 | =======
3 |
4 | Easy data storage is a library where users can stored their data in Shared Preferences in easier way. It provides to store the data in all primitive data type format as well as object and list of custom object format.
5 |
6 | ## How to build
7 |
8 | Add Jitpack.io to your project level build.gradle file
9 | ```gradle
10 | allprojects {
11 | repositories {
12 | maven { url 'https://jitpack.io' }
13 | }
14 | }
15 | ```
16 |
17 | And then in the other gradle file(may be your app gradle or your own module library gradle, but never add in both of them to avoid conflict.)
18 | ```java
19 | dependencies {
20 | implementation 'com.github.neeloyghosh1990:EasyDataStorage:v1.0'
21 | }
22 | ```
23 | ## How to use
24 | 1) Initialize the StorageUtility Class like this-
25 | ```java
26 | StorageUtility.initLibrary(this);
27 | ```
28 | 2) Then to store and retrieve Data use the functions like this-
29 |
30 | **For String:**
31 | ```java
32 | StorageUtility.setStringData(,);
33 | StorageUtility.getStringData();
34 | ```
35 |
36 | **For Integer:**
37 | ```java
38 | StorageUtility.setIntData(,);
39 | StorageUtility.getIntData();
40 | ```
41 | **For Boolean:**
42 | ```java
43 | StorageUtility.setBooleanData(,);
44 | StorageUtility.getBooleanData();
45 | ```
46 | **For Double:**
47 | ```java
48 | StorageUtility.setDoubleData(,);
49 | StorageUtility.getDoubleData();
50 | ```
51 | **For Long:**
52 | ```java
53 | StorageUtility.setLongData(,);
54 | StorageUtility.getLongData();
55 | ```
56 | **For Object:**
57 | ```java
58 | StorageUtility.setObject(,