Skip to content

Commit

Permalink
Update to 0.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sumimakito committed Jul 29, 2015
1 parent edeec61 commit 8052a47
Show file tree
Hide file tree
Showing 50 changed files with 557 additions and 322 deletions.
File renamed without changes.
46 changes: 31 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,39 +59,54 @@ pkvdb2.get("Key");
### Current version 当前版本

##### 0.9.1 (Library 库) / 0.8 (Demo 演示)
##### 0.9.5 (Library 库) / 0.8 (Demo 演示)

### Features 特性
* Package name is changed to ``` com.github.sumimakito.quickkv ``` 包名已变更为 ``` com.github.sumimakito.quickkv ``` (0.9+)
### Changelog 更新说明

* Use MaglevIO to improve reading speed 使用 MaglevIO 提升数据库读入速度 (0.9+)
##### 0.9.5+

* Support async method for heavy operations 支持繁重操作的异步执行 (0.8.1+)
* Support GZip compression 支持GZip压缩

* More convenient 操作更便捷 (0.8+)
* Support custom workspace 可设置工作目录

* Improved reading speed 文件读取解析更迅速 (0.8+)
* Use MaglevIO to speed up reading and writing 使用MaglevIO提升数据库读取与写入速度

* Generic supprot(Improving) 泛型支持(改进中) (0.8+)
##### 0.9+

* AES256 encryption support 支持AES256加密 (0.8+)
* Package name is changed to ``` com.github.sumimakito.quickkv ``` 包名已变更为 ``` com.github.sumimakito.quickkv ```

* High performance 高性能 (0.7+)
* Use MaglevIO to improve reading speed(reading only) 使用MaglevIO提升数据库读取速度(仅读取)

* Allow nearly all type of keys and values 几乎支持所有类型的键与值 (0.6+)
##### 0.8.1+

* Multi-database management 多数据库管理 (0.6+)
* Support async method for heavy operations 支持繁重操作的异步执行

* Persistable 可持久化 (0.6+)
* More convenient 操作更便捷

* Improved reading speed 文件读取解析更迅速

* Generic supprot(Improving) 泛型支持(改进中)

* AES256 encryption support 支持AES256加密

##### 0.7+

* High performance 高性能

##### 0.6+

* Allow nearly all type of keys and values 几乎支持所有类型的键与值

* Multi-database management 多数据库管理

* Persistable 可持久化

### TODO 任务与目标

* 提交至中心仓库

* 数据分级缓存机制

* 解决超大数据库文件读入OOM问题

* Make it better and better 使它变得越来越好

### Download 下载
Expand Down Expand Up @@ -143,6 +158,7 @@ qkvdb = quickKv.getDatabase("Foobar");
//Or or get a database with an encryption key
qkvdb = quickKv.getDatabase("", "encrypt123"); //leave a blank database name = "I want to use the default name"
qkvdb = quickKv.getDatabase("Foobar", "encrypt123"); //"encryptq123" is your encryption key
qkvdb = quickKv.getDatabase("Foobar", "encrypt123", true); //enable gzip for encrypted database
```

#### Values returned after operation 操作后返回值 (0.8+)
Expand Down
14 changes: 8 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
version = VERSION_NAME
group = GROUP

repositories {
mavenCentral()
jcenter()
}
}
}
26 changes: 3 additions & 23 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Settings specified in this file will override any Gradle settings
# configured through the IDE.
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
Expand All @@ -15,24 +15,4 @@
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=0.8.2
VERSION_CODE=5
GROUP=com.github.sumimakito.quickkv

ANDROID_BUILD_MIN_SDK_VERSION=8
ANDROID_BUILD_TARGET_SDK_VERSION=21
ANDROID_BUILD_SDK_VERSION=21
ANDROID_BUILD_TOOLS_VERSION=21.1.1

POM_DESCRIPTION=Lightweight and Easy-to-use Key-Value Database.
POM_URL=https://github.com/sumimakito/QuickKV
POM_SCM_URL=https://github.com/sumimakito/QuickKV
POM_SCM_CONNECTION=scm:[email protected]:sumimakito/QuickKV.git
POM_SCM_DEV_CONNECTION=scm:[email protected]:sumimakito/QuickKV.git
POM_LICENCE_NAME=Apache License 2.0
POM_LICENCE_URL=https://github.com/sumimakito/QuickKV/blob/master/LICENSE
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=sumimakito
POM_DEVELOPER_NAME=SumiMakito
# org.gradle.parallel=true
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Dec 02 11:31:45 EET 2014
#Wed Apr 10 15:27:10 PDT 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Expand Down
Empty file modified gradlew
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions library/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
25 changes: 7 additions & 18 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,34 +1,23 @@
apply plugin: 'com.android.library'

repositories {
mavenCentral()
}

android {
compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VERSION)
buildToolsVersion project.ANDROID_BUILD_TOOLS_VERSION
compileSdkVersion 21
buildToolsVersion "21.1.1"

defaultConfig {
minSdkVersion Integer.parseInt(project.ANDROID_BUILD_MIN_SDK_VERSION)
targetSdkVersion Integer.parseInt(project.ANDROID_BUILD_TARGET_SDK_VERSION)
versionName project.VERSION_NAME
versionCode Integer.parseInt(project.VERSION_CODE)
minSdkVersion 8
targetSdkVersion 21
versionCode 7
versionName "0.9.5"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

lintOptions {
abortOnError false
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'net.minidev:json-smart:2.1.1'
}

apply from: 'https://raw.githubusercontent.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions library/build/intermediates/bundles/debug/AndroidManifest.xml

This file was deleted.

11 changes: 0 additions & 11 deletions library/build/intermediates/bundles/debug/aapt/AndroidManifest.xml

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file removed library/build/outputs/aar/library-debug.aar
Binary file not shown.
2 changes: 0 additions & 2 deletions library/build/tmp/packageDebugJar/MANIFEST.MF

This file was deleted.

3 changes: 0 additions & 3 deletions library/gradle.properties

This file was deleted.

7 changes: 3 additions & 4 deletions library/library.iml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="com.github.sumimakito.quickkv" external.system.module.version="0.8.2" type="JAVA_MODULE" version="4">
<module external.linked.project.id=":library" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="QuickKV" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
Expand All @@ -19,7 +19,7 @@
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
<option name="LIBRARY_PROJECT" value="true" />
</configuration>
Expand Down Expand Up @@ -87,9 +87,8 @@
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="json-smart-2.1.1" level="project" />
<orderEntry type="library" exported="" name="asm-3.3.1" level="project" />
<orderEntry type="library" exported="" name="MaglevIO_Snapshot_master_Build.24" level="project" />
<orderEntry type="library" exported="" name="asm-1.0.2" level="project" />
<orderEntry type="library" exported="" name="json-smart-2.0-RC3" level="project" />
</component>
</module>
Binary file added library/libs/asm-3.3.1.jar
Binary file not shown.
Binary file added library/libs/json-smart-2.0-RC3.jar
Binary file not shown.
17 changes: 17 additions & 0 deletions library/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/makito/Documents/Android SDK/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.github.sumimakito.quickkv;

import android.app.Application;
import android.test.ApplicationTestCase;

/**
* <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>
*/
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
Loading

0 comments on commit 8052a47

Please sign in to comment.