diff --git a/Android/MMKV/gradle.properties b/Android/MMKV/gradle.properties index 8f57db47..c20c7504 100644 --- a/Android/MMKV/gradle.properties +++ b/Android/MMKV/gradle.properties @@ -14,6 +14,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.2.9 +VERSION_NAME_PREFIX=1.2.10 #VERSION_NAME_SUFFIX=-SNAPSHOT VERSION_NAME_SUFFIX= \ No newline at end of file diff --git a/Android/MMKV/mmkvdemo/build.gradle b/Android/MMKV/mmkvdemo/build.gradle index 4a18eebf..5363bdad 100644 --- a/Android/MMKV/mmkvdemo/build.gradle +++ b/Android/MMKV/mmkvdemo/build.gradle @@ -75,8 +75,8 @@ repositories { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':mmkv') -// implementation 'com.tencent:mmkv:1.2.9' -// implementation 'com.tencent:mmkv-static:1.2.9' +// implementation 'com.tencent:mmkv:1.2.10' +// implementation 'com.tencent:mmkv-static:1.2.10' implementation 'androidx.appcompat:appcompat:1.3.0' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' testImplementation 'junit:junit:4.13.2' diff --git a/CHANGELOG.md b/CHANGELOG.md index 0be4736f..87e201ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # MMKV Change Log +## v1.2.10 / 2021-06-25 +This version is mainly for Android & Flutter. + +### Android +* Complete **JavaDoc documentation** for all public methods, classes, and interfaces. From now on, you can find the [API reference online](https://javadoc.io/doc/com.tencent/mmkv). +* Drop the support of **armeabi** arch. Due to some local build cache mistake, the last version (v1.2.9) of MMKV still has an unstripped armeabi arch inside. This is fixed. +* Change `MMKV.mmkvWithID()` from returning `null` to throwing exceptions on any error. +* Add `MMKV.actualSize()` to get the actual used size of the file. + +### Flutter (v1.2.11) +* Bug Fixed: When building on iOS, occasionally it will fail on symbol conflict with other libs. We have renamed all public native methods to avoid potential conflict. +* Keep up with MMKV native lib v1.2.10. + ## v1.2.9 / 2021-05-26 This version is mainly for Android & Flutter. diff --git a/Core/MMKVPredef.h b/Core/MMKVPredef.h index 187b2364..bc40377f 100755 --- a/Core/MMKVPredef.h +++ b/Core/MMKVPredef.h @@ -34,7 +34,7 @@ #include #include -constexpr auto MMKV_VERSION = "v1.2.9"; +constexpr auto MMKV_VERSION = "v1.2.10"; #ifdef DEBUG # define MMKV_DEBUG diff --git a/MMKV.podspec b/MMKV.podspec index 38c010a9..1971dec5 100644 --- a/MMKV.podspec +++ b/MMKV.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKV" - s.version = "1.2.9" + s.version = "1.2.10" s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat." s.description = <<-DESC @@ -30,7 +30,7 @@ Pod::Spec.new do |s| "CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO", } - s.dependency 'MMKVCore', '~> 1.2.9' + s.dependency 'MMKVCore', '~> 1.2.10' end diff --git a/MMKVAppExtension.podspec b/MMKVAppExtension.podspec index 9bb04e6d..70dfce0f 100644 --- a/MMKVAppExtension.podspec +++ b/MMKVAppExtension.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKVAppExtension" - s.version = "1.2.9" + s.version = "1.2.10" s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat." s.module_name = "MMKVAppExtension" @@ -31,7 +31,7 @@ Pod::Spec.new do |s| "GCC_PREPROCESSOR_DEFINITIONS" => "MMKV_IOS_EXTENSION", } - s.dependency 'MMKVCore', '~> 1.2.9' + s.dependency 'MMKVCore', '~> 1.2.10' end diff --git a/MMKVCore.podspec b/MMKVCore.podspec index 7a37cc40..f79e0b7b 100644 --- a/MMKVCore.podspec +++ b/MMKVCore.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKVCore" - s.version = "1.2.9" + s.version = "1.2.10" s.summary = "MMKVCore for MMKV. MMKV is a cross-platform key-value storage framework developed by WeChat." s.description = <<-DESC diff --git a/MMKVWatchExtension.podspec b/MMKVWatchExtension.podspec index a60e7598..d0bb0247 100644 --- a/MMKVWatchExtension.podspec +++ b/MMKVWatchExtension.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKVWatchExtension" - s.version = "1.2.9" + s.version = "1.2.10" s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat." s.module_name = "MMKVWatchExtension" @@ -31,7 +31,7 @@ Pod::Spec.new do |s| "GCC_PREPROCESSOR_DEFINITIONS" => "MMKV_IOS_EXTENSION", } - s.dependency 'MMKVCore', '~> 1.2.9' + s.dependency 'MMKVCore', '~> 1.2.10' end diff --git a/README.md b/README.md index bfcd8165..7c4f9034 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.2.9-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) +[![Release Version](https://img.shields.io/badge/release-1.2.10-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) [![Platform](https://img.shields.io/badge/Platform-%20Android%20%7C%20iOS%2FmacOS%20%7C%20Win32%20%7C%20POSIX-brightgreen.svg)](https://github.com/Tencent/MMKV/wiki/home) 中文版本请参看[这里](./README_CN.md) @@ -28,8 +28,8 @@ Add the following lines to `build.gradle` on your app module: ```gradle dependencies { - implementation 'com.tencent:mmkv-static:1.2.9' - // replace "1.2.9" with any available version + implementation 'com.tencent:mmkv-static:1.2.10' + // replace "1.2.10" with any available version } ``` diff --git a/README_CN.md b/README_CN.md index 68e9d68f..52099e24 100644 --- a/README_CN.md +++ b/README_CN.md @@ -22,8 +22,8 @@ MMKV 是基于 mmap 内存映射的 key-value 组件,底层序列化/反序列 ```gradle dependencies { - implementation 'com.tencent:mmkv-static:1.2.9' - // replace "1.2.9" with any available version + implementation 'com.tencent:mmkv-static:1.2.10' + // replace "1.2.10" with any available version } ``` 从 v1.2.8 起, MMKV **迁移到 Maven Central**。老版本 (<= v1.2.7) 仍然在 JCenter。 diff --git a/flutter/CHANGELOG.md b/flutter/CHANGELOG.md index 49e6a7e2..07d2d138 100644 --- a/flutter/CHANGELOG.md +++ b/flutter/CHANGELOG.md @@ -1,7 +1,8 @@ # MMKV for Flutter Change Log -## v1.2.11 / 2021-06-xx -* Rename iOS function names to avoid conflict with other libs. +## v1.2.11 / 2021-06-25 +* Bug Fixed: When building on iOS, occasionally it will fail on symbol conflict with other libs. We have renamed all public native methods to avoid potential conflict. +* Keep up with MMKV native lib v1.2.10. ## v1.2.10 / 2021-05-26 * Bug Fixed: When calling `MMKV.encodeString()` with an empty string value on Android, `MMKV.decodeString()` will return `null`. diff --git a/flutter/android/build.gradle b/flutter/android/build.gradle index 7f0026ac..93348432 100644 --- a/flutter/android/build.gradle +++ b/flutter/android/build.gradle @@ -33,6 +33,6 @@ android { } dependencies { - implementation 'com.tencent:mmkv-static:[1.2.9,)' + implementation 'com.tencent:mmkv-static:[1.2.10,)' } } diff --git a/flutter/ios/mmkvflutter.podspec b/flutter/ios/mmkvflutter.podspec index d743143f..f73fd07a 100644 --- a/flutter/ios/mmkvflutter.podspec +++ b/flutter/ios/mmkvflutter.podspec @@ -5,7 +5,7 @@ Pod::Spec.new do |s| s.name = 'mmkvflutter' - s.version = '1.2.10' + s.version = '1.2.11' s.summary = 'MMKV is a cross-platform key-value storage framework developed by WeChat.' s.description = <<-DESC The MMKV, for Flutter. @@ -19,7 +19,7 @@ Pod::Spec.new do |s| s.source_files = 'Classes/**/*' s.public_header_files = 'Classes/**/*.h' s.dependency 'Flutter' - s.dependency 'MMKV', '>= 1.2.8' + s.dependency 'MMKV', '>= 1.2.10' s.platform = :ios, '9.0' # Flutter.framework does not contain a i386 slice. diff --git a/iOS/MMKV/MMKV.xcodeproj/project.pbxproj b/iOS/MMKV/MMKV.xcodeproj/project.pbxproj index dfb0a7ae..bec19657 100644 --- a/iOS/MMKV/MMKV.xcodeproj/project.pbxproj +++ b/iOS/MMKV/MMKV.xcodeproj/project.pbxproj @@ -485,7 +485,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.2.9; + MARKETING_VERSION = 1.2.10; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -528,7 +528,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.2.9; + MARKETING_VERSION = 1.2.10; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -725,7 +725,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.2.9; + MARKETING_VERSION = 1.2.10; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -763,7 +763,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.2.9; + MARKETING_VERSION = 1.2.10; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -808,7 +808,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.2.9; + MARKETING_VERSION = 1.2.10; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -855,7 +855,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; MACOSX_DEPLOYMENT_TARGET = 10.9; - MARKETING_VERSION = 1.2.9; + MARKETING_VERSION = 1.2.10; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit,