Skip to content

Commit

Permalink
fix same issue && change get arg
Browse files Browse the repository at this point in the history
  • Loading branch information
arshanaqdi committed Feb 22, 2019
1 parent 8173e16 commit 071cc70
Show file tree
Hide file tree
Showing 20 changed files with 523 additions and 126 deletions.
137 changes: 137 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,140 @@
/build
/captures
.externalNativeBuild

# Created by https://www.gitignore.io/api/androidstudio,
# Edit at https://www.gitignore.io/?templates=androidstudio,

#!! ERROR: is undefined. Use list command to see defined gitignore types !!#

### AndroidStudio ###
# Covers files to be ignored for android development using Android Studio.

# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle
.gradle/
build/

# Signing files
.signing/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio
/*/build/
/*/local.properties
/*/out
/*/*/build
/*/*/production
captures/
.navigation/
*.ipr
*~
*.swp

# Android Patch
gen-external-apklibs

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild

# NDK
obj/

# IntelliJ IDEA
*.iml
*.iws
/out/

# User-specific configurations
.idea/caches/
.idea/libraries/
.idea/shelf/
.idea/workspace.xml
.idea/tasks.xml
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/misc.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/dictionaries
.idea/vcs.xml
.idea/jsLibraryMappings.xml
.idea/datasources.xml
.idea/dataSources.ids
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml
.idea/assetWizardSettings.xml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Legacy Eclipse project files
.classpath
.project
.cproject
.settings/

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear

# virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml)
hs_err_pid*

## Plugin-specific files:

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Mongo Explorer plugin
.idea/mongoSettings.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

### AndroidStudio Patch ###

!/gradle/wrapper/gradle-wrapper.jar

# End of https://www.gitignore.io/api/androidstudio,
59 changes: 26 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
### `Reactor`
##### `Reactor`

[![](https://jitpack.io/v/dfmabbas/reactor.svg)](https://jitpack.io/#dfmAbbas/reactor)
[![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/dfmabbas/reactor)
[![API](https://img.shields.io/badge/API-15%2B-blue.svg?style=flat)](https://github.com/dfmabbas/reactor)

**Reactor** is a `fast` and `secure` key-value library for Android, and has an embedded database based on the JSON structure and is a great alternative to Shared Preferences.


##### `Reactor` is a `fast` and `secure` key-value library for Android, and has an embedded database based on the JSON structure and is a great alternative to Shared Preferences.
##### Features
- [x] `Save and restore a variety of objects (serialization and deserialization)`
- [x] `Symmetric encryption of objects (signed by target application at runtime + Hardware_ID)`
- [x] `Very high performance‍`
- [x] `Very low library size (No need for other libraries)`
- [x] `Supported and tested in API 15 and above`
- [x] `Minimal and easy to use :)`
- [ ] `Save and restore all objects at runtime in RAM`
- [ ] `Add a data branch (branches can be independent of the main branch) `
- [ ] `Imports data from Shared Preferences to Reactor`
- [ ] `Multiprocess support`



#### Features

- [x] Save and restore a variety of objects (serialization and deserialization)
- [x] Symmetric encryption of objects (signed by target application at runtime + Hardware_ID)
- [x] Very high performance‍
- [x] Very low library size (No need for other libraries)
- [x] Supported and tested in API 15 and above
- [x] Minimal and easy to use :)
- [ ] Save and restore all objects at runtime in RAM
- [ ] Add a data branch (branches can be independent of the main branch)
- [ ] Imports data from Shared Preferences to Reactor
- [ ] Multiprocess support

#### Getting Started :
##### Getting Started :

Add to your root build.gradle :

```Groovy
allprojects {
repositories {
Expand All @@ -35,8 +33,8 @@ allprojects {
}
```

Add the dependency :

Add the dependency :
```Groovy
dependencies {
implementation 'com.github.dfmabbas:reactor:v1.2.1'
Expand All @@ -45,9 +43,9 @@ dependencies {



#### Simple API (default) :
##### Simple API (default) :

##### In `Kotlin` :
In `Kotlin` :

```Groovy
reactor = Reactor(context, Algorithm.AES)
Expand All @@ -68,10 +66,11 @@ val thisClass = reactor.get("this", this::class.java)
reactor.remove("day", false)
reactor.clearAll()
```

##### In `Java` :


In `Java` :

```Groovy
reactor = new Reactor(getContext(), Algorithm.AES);
Expand All @@ -96,20 +95,15 @@ reactor.clearAll();



#### Advanced API :

##### In `Kotlin`:

###### [Sample code written with Kotlin](sample/src/main/java/com/dfmabbas/sample/KotlinSample.kt) .
##### Advanced API :

##### In `Java`:
In `Kotlin`: [sample code written with Kotlin](sample/src/main/java/com/dfmabbas/sample/KotlinSample.kt) .

###### [Sample code written with Java](sample/src/main/java/com/dfmabbas/sample/JavaSample.java) .
In `Java`: [sample code written with Java](sample/src/main/java/com/dfmabbas/sample/JavaSample.java) .



#### License

##### License
```
MIT License
Expand All @@ -131,6 +125,5 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

SOFTWARE
```
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buildscript {
ext.kotlin_version = '1.2.71'
ext.kotlin_version = '1.3.21'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.android.tools.build:gradle:3.4.0-beta05'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down
8 changes: 6 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
org.gradle.jvmargs=-Xmx2048m
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2g
org.gradle.parallel=true
kotlin.code.style=official
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
Loading

0 comments on commit 071cc70

Please sign in to comment.