diff --git a/Android/MMKV/gradle.properties b/Android/MMKV/gradle.properties index 17ceb0d4..489d64f9 100644 --- a/Android/MMKV/gradle.properties +++ b/Android/MMKV/gradle.properties @@ -12,6 +12,6 @@ org.gradle.jvmargs=-Xmx1536m # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -VERSION_NAME_PREFIX=1.0.14 +VERSION_NAME_PREFIX=1.0.15 #VERSION_NAME_SUFFIX=-SNAPSHOT VERSION_NAME_SUFFIX= \ No newline at end of file diff --git a/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java b/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java index 460b431a..94decd0e 100644 --- a/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java +++ b/Android/MMKV/mmkv/src/main/java/com/tencent/mmkv/MMKV.java @@ -304,8 +304,7 @@ public T decodeParcelable(String key, Class tClass) { } @SuppressWarnings("unchecked") - public - T decodeParcelable(String key, Class tClass, T defaultValue) { + public T decodeParcelable(String key, Class tClass, T defaultValue) { if (tClass == null) { return defaultValue; } diff --git a/Android/MMKV/mmkvdemo/build.gradle b/Android/MMKV/mmkvdemo/build.gradle index c55f2718..9bfb29cd 100644 --- a/Android/MMKV/mmkvdemo/build.gradle +++ b/Android/MMKV/mmkvdemo/build.gradle @@ -62,9 +62,9 @@ repositories { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') - implementation project(':mmkv') -// implementation 'com.tencent:mmkv:1.0.14' -// implementation 'com.tencent:mmkv-static:1.0.14' +// implementation project(':mmkv') + implementation 'com.tencent:mmkv:1.0.15' +// implementation 'com.tencent:mmkv-static:1.0.15' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' diff --git a/CHANGELOG.md b/CHANGELOG.md index 23ec9075..5d24c000 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # MMKV Change Log +## v1.0.15 / 2018-12-13 +### iOS / macOS +What's new + +* Storing **NSString/NSData/NSDate** directly by calling `setString`/`getSring`, `setData`/`getData`, `setDate`/getDate`. +* Fix a potencial crash due to divided by zero. + + +### Android +What's new + +* Fix a stack overflow crash due to the **callback** feature introduced by v1.0.13. +* Fix a potencial crash due to divided by zero. + +### Win32 +MMKV for Win32 in under construction. Hopefully will come out in next release. For those who are interested, check out branch `dev_win32` for the latest development. + ## v1.0.14 / 2018-11-30 ### iOS / macOS What's new diff --git a/README.md b/README.md index 9da33dd1..d7ab1627 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![license](https://img.shields.io/badge/license-BSD_3-brightgreen.svg?style=flat)](https://github.com/Tencent/MMKV/blob/master/LICENSE.TXT) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/MMKV/pulls) -[![Release Version](https://img.shields.io/badge/release-1.0.14-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) +[![Release Version](https://img.shields.io/badge/release-1.0.15-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) [![Platform](https://img.shields.io/badge/Platform-%20iOS%20%7C%20Android-brightgreen.svg)](https://github.com/Tencent/MMKV/wiki/home) 中文版本请参看[这里](./readme_cn.md) @@ -75,8 +75,8 @@ Add the following lines to `build.gradle` on your app module: ```gradle dependencies { - implementation 'com.tencent:mmkv:1.0.14' - // replace "1.0.14" with any available version + implementation 'com.tencent:mmkv:1.0.15' + // replace "1.0.15" with any available version } ``` diff --git a/iOS/MMKV/MMKV/Resources/Info.plist b/iOS/MMKV/MMKV/Resources/Info.plist index b84a849d..910e8276 100644 --- a/iOS/MMKV/MMKV/Resources/Info.plist +++ b/iOS/MMKV/MMKV/Resources/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.0.14 + 1.0.15 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/readme_cn.md b/readme_cn.md index 9512227a..ce77bf1a 100644 --- a/readme_cn.md +++ b/readme_cn.md @@ -59,8 +59,8 @@ NSString *str = [mmkv getObjectOfClass:NSString.class forKey:@"string"]; ```gradle dependencies { - implementation 'com.tencent:mmkv:1.0.14' - // replace "1.0.14" with any available version + implementation 'com.tencent:mmkv:1.0.15' + // replace "1.0.15" with any available version } ```