From 00a5dbd22f1356bfe86bdf6be8c95afbc0a265a5 Mon Sep 17 00:00:00 2001 From: guoling Date: Mon, 8 Jul 2024 15:29:32 +0800 Subject: [PATCH] prepare for v1.3.7 --- Android/MMKV/gradle.properties | 2 +- Android/MMKV/mmkvdemo/build.gradle | 12 ++++++------ CHANGELOG.md | 7 +++++++ Core/MMKVPredef.h | 2 +- README.md | 6 +++--- README_CN.md | 4 ++-- flutter/mmkv/CHANGELOG.md | 5 +++++ flutter/mmkv/README.md | 6 +++--- flutter/mmkv/pubspec.yaml | 4 ++-- flutter/mmkv_android/CHANGELOG.md | 3 +++ flutter/mmkv_android/android/build.gradle | 2 +- flutter/mmkv_android/pubspec.yaml | 2 +- 12 files changed, 35 insertions(+), 20 deletions(-) diff --git a/Android/MMKV/gradle.properties b/Android/MMKV/gradle.properties index 0cf45a4a..77c658cd 100644 --- a/Android/MMKV/gradle.properties +++ b/Android/MMKV/gradle.properties @@ -14,7 +14,7 @@ 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.3.6 +VERSION_NAME_PREFIX=1.3.7 #VERSION_NAME_SUFFIX=-SNAPSHOT VERSION_NAME_SUFFIX= diff --git a/Android/MMKV/mmkvdemo/build.gradle b/Android/MMKV/mmkvdemo/build.gradle index 20664192..cc1f50c8 100644 --- a/Android/MMKV/mmkvdemo/build.gradle +++ b/Android/MMKV/mmkvdemo/build.gradle @@ -77,14 +77,14 @@ repositories { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':mmkv') -// implementation 'com.tencent:mmkv:1.3.6' -// implementation 'com.tencent:mmkv-static:1.3.6' // this is identical to 'com.tencent:mmkv' -// implementation 'com.tencent:mmkv-shared:1.3.6' +// implementation 'com.tencent:mmkv:1.3.7' +// implementation 'com.tencent:mmkv-static:1.3.7' // this is identical to 'com.tencent:mmkv' +// implementation 'com.tencent:mmkv-shared:1.3.7' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' testImplementation 'junit:junit:4.13.2' - androidTestImplementation 'androidx.test:runner:1.5.2' - androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' - implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + androidTestImplementation 'androidx.test:runner:1.6.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1' +// implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'com.getkeepsafe.relinker:relinker:1.4.5' } diff --git a/CHANGELOG.md b/CHANGELOG.md index b8f1e5c0..cd87f1de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ # MMKV Change Log +## v1.3.7 / 2024-07-08 +### Android & Flutter +**This Long Term Support (LTS) release** primarily reintroduces support for the ARMv7 architecture and lowers the minimum SDK version requirement to 21. Please note that only critical bug fixes will be applied to the 1.3.x series. New features will be introduced in version 2.0 and later, which will discontinue support for 32-bit architectures and raise the minimum SDK version requirement to 23. + +### For other platforms +This is exactly the same as v1.3.6, so don't be surprised if you don't see this version in CocoaPods or OHPM. + ## v1.3.6 / 2024-07-05 ### Changes for All platforms * The Core library now upgrades the C++ standard from C++17 to C++20 to make the most of morden C++ feature such as `Concept` & unordered containers with `std::string_view` as key. From now on, if you build MMKV by source (iOS, Windows, POSIX, etc), you will need a C++ compiler that supports the C++20 standard. If you only use MMKV in binary (Android, OHOS, etc), this upgrade of the C++ compiler is not required. diff --git a/Core/MMKVPredef.h b/Core/MMKVPredef.h index 6a268e39..183cb058 100755 --- a/Core/MMKVPredef.h +++ b/Core/MMKVPredef.h @@ -34,7 +34,7 @@ #include #include -constexpr auto MMKV_VERSION = "v1.3.6"; +constexpr auto MMKV_VERSION = "v1.3.7"; #ifdef DEBUG # define MMKV_DEBUG diff --git a/README.md b/README.md index a124ac8e..63fe1654 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.3.6-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) +[![Release Version](https://img.shields.io/badge/release-1.3.7-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) [![Platform](https://img.shields.io/badge/Platform-%20Android%20%7C%20iOS%2FmacOS%20%7C%20Windows%20%7C%20POSIX%20%7C%20HarmonyOS%20NEXT-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:1.3.6' - // replace "1.3.6" with any available version + implementation 'com.tencent:mmkv:1.3.7' + // replace "1.3.7" with any available version } ``` diff --git a/README_CN.md b/README_CN.md index a5e6cc7d..ee1e4b1c 100644 --- a/README_CN.md +++ b/README_CN.md @@ -22,8 +22,8 @@ MMKV 是基于 mmap 内存映射的 key-value 组件,底层序列化/反序列 ```gradle dependencies { - implementation 'com.tencent:mmkv:1.3.6' - // replace "1.3.6" with any available version + implementation 'com.tencent:mmkv:1.3.7' + // replace "1.3.7" with any available version } ``` 更多安装指引参考 [Android Setup](https://github.com/Tencent/MMKV/wiki/android_setup_cn)。 diff --git a/flutter/mmkv/CHANGELOG.md b/flutter/mmkv/CHANGELOG.md index 3b4c3367..972b34ec 100644 --- a/flutter/mmkv/CHANGELOG.md +++ b/flutter/mmkv/CHANGELOG.md @@ -1,4 +1,9 @@ # MMKV for Flutter Change Log +## v1.3.7 / 2024-07-08 +**Sync with Latest Android Native Binary:** + +This Long Term Support (LTS) release primarily reintroduces support for the ARMv7 architecture and lowers the minimum SDK version requirement to 21. Please note that only critical bug fixes will be applied to the 1.3.x series. New features will be introduced in version 2.0 and later, which will discontinue support for 32-bit architectures and raise the minimum SDK version requirement to 23. + ## v1.3.6 / 2024-07-05 * Android: MMKV will try to load libmmkv.so before Dart code, to reduce the error of loading library in Android. * Android: Use the latest ashmem API if possible. diff --git a/flutter/mmkv/README.md b/flutter/mmkv/README.md index 2bf1ded1..0d23e5e6 100644 --- a/flutter/mmkv/README.md +++ b/flutter/mmkv/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.3.6-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) +[![Release Version](https://img.shields.io/badge/release-1.3.7-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) [![Platform](https://img.shields.io/badge/Platform-%20Android%20%7C%20iOS-brightgreen.svg)](https://github.com/Tencent/MMKV/wiki/home) MMKV is an **efficient**, **small**, **easy-to-use** mobile key-value storage framework used in the WeChat application. It's currently available on **Android** and **iOS**. @@ -26,11 +26,11 @@ Add the following lines to `pubspec.yaml` on your app module. Then run `flutter ```yaml dependencies: - mmkv: ">=1.3.6" + mmkv: "^1.3.7" ... ``` -If you already include MMKV native lib in your App, you need to upgrade to version newer than v1.3.6. +If you already include MMKV native lib in your App, you need to upgrade to version newer than v1.3.7. #### iOS Starting from v1.3.5, there's **no need** to change the plugin name 'mmkv' to 'mmkvflutter'. You should remove the script (`fix_mmkv_plugin_name()`) previously added in your Podfile. diff --git a/flutter/mmkv/pubspec.yaml b/flutter/mmkv/pubspec.yaml index e54e2c0b..aa1cda1a 100644 --- a/flutter/mmkv/pubspec.yaml +++ b/flutter/mmkv/pubspec.yaml @@ -1,6 +1,6 @@ name: mmkv description: An efficient, small mobile key-value storage framework developed by WeChat. Works on Android & iOS. -version: 1.3.6 +version: 1.3.7 homepage: https://github.com/Tencent/mmkv repository: https://github.com/Tencent/MMKV/tree/master/flutter/mmkv @@ -17,7 +17,7 @@ dependencies: ^1.0.2 # path: ../mmkv_ios mmkv_android: - ^1.0.2 + ^1.0.3 # path: ../mmkv_android mmkv_platform_interface: ^1.0.0 diff --git a/flutter/mmkv_android/CHANGELOG.md b/flutter/mmkv_android/CHANGELOG.md index dee1b33b..b88d2664 100644 --- a/flutter/mmkv_android/CHANGELOG.md +++ b/flutter/mmkv_android/CHANGELOG.md @@ -1,5 +1,8 @@ # MMKV Platform Android Change Log +## v1.0.3 / 2024-07-08 +Keep up with native lib v1.3.7. + ## v1.0.2 / 2024-07-05 Keep up with native lib v1.3.6. diff --git a/flutter/mmkv_android/android/build.gradle b/flutter/mmkv_android/android/build.gradle index 7d8bb2b8..06689afd 100644 --- a/flutter/mmkv_android/android/build.gradle +++ b/flutter/mmkv_android/android/build.gradle @@ -34,6 +34,6 @@ android { } dependencies { - implementation 'com.tencent:mmkv:1.3.6' + implementation 'com.tencent:mmkv:1.3.7' } } diff --git a/flutter/mmkv_android/pubspec.yaml b/flutter/mmkv_android/pubspec.yaml index f6deaea7..f708c49f 100644 --- a/flutter/mmkv_android/pubspec.yaml +++ b/flutter/mmkv_android/pubspec.yaml @@ -1,7 +1,7 @@ name: mmkv_android description: Android platform implementation of MMKV. repository: https://github.com/Tencent/MMKV/tree/master/flutter/mmkv_ios -version: 1.0.2 +version: 1.0.3 homepage: https://github.com/Tencent/mmkv environment: