From 51d692007fd6210fe3bcdedd6eee9d8120b98601 Mon Sep 17 00:00:00 2001 From: guoling Date: Thu, 14 Mar 2024 16:01:01 +0800 Subject: [PATCH] prepare for v1.3.4 --- Android/MMKV/gradle.properties | 4 ++-- Android/MMKV/mmkvdemo/build.gradle | 6 +++--- CHANGELOG.md | 10 ++++++++++ Core/MMKVPredef.h | 2 +- MMKV.podspec | 4 ++-- MMKVAppExtension.podspec | 4 ++-- MMKVCore.podspec | 2 +- MMKVWatchExtension.podspec | 4 ++-- README.md | 6 +++--- README_CN.md | 4 ++-- flutter/CHANGELOG.md | 4 ++++ flutter/README.md | 6 +++--- flutter/android/build.gradle | 2 +- flutter/example/android/app/build.gradle | 2 +- flutter/ios/mmkvflutter.podspec | 4 ++-- flutter/pubspec.yaml | 2 +- iOS/MMKV/MMKV.xcodeproj/project.pbxproj | 12 ++++++------ 17 files changed, 46 insertions(+), 32 deletions(-) diff --git a/Android/MMKV/gradle.properties b/Android/MMKV/gradle.properties index 006f6dfd..100e1e88 100644 --- a/Android/MMKV/gradle.properties +++ b/Android/MMKV/gradle.properties @@ -14,9 +14,9 @@ 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.3 +VERSION_NAME_PREFIX=1.3.4 #VERSION_NAME_SUFFIX=-SNAPSHOT VERSION_NAME_SUFFIX= RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 -SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots \ No newline at end of file +SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots diff --git a/Android/MMKV/mmkvdemo/build.gradle b/Android/MMKV/mmkvdemo/build.gradle index 5eac6f91..50180544 100644 --- a/Android/MMKV/mmkvdemo/build.gradle +++ b/Android/MMKV/mmkvdemo/build.gradle @@ -77,9 +77,9 @@ repositories { dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':mmkv') -// implementation 'com.tencent:mmkv:1.3.3' -// implementation 'com.tencent:mmkv-static:1.3.3' // this is identical to 'com.tencent:mmkv' -// implementation 'com.tencent:mmkv-shared:1.3.3' +// implementation 'com.tencent:mmkv:1.3.4' +// implementation 'com.tencent:mmkv-static:1.3.4' // this is identical to 'com.tencent:mmkv' +// implementation 'com.tencent:mmkv-shared:1.3.4' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' testImplementation 'junit:junit:4.13.2' diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a931247..6660bfdc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,14 @@ # MMKV Change Log +## v1.3.4 / 2024-03-15 +### Changes for All platforms +* Make `trim()` more robust in multi-process mode. + +### iOS & macOS +* Support visionOS. + +### POSIX +* Fix a compile error on `::unlink()`. + ## v1.3.3 / 2024-01-25 ### Changes for All platforms * Add `removeStorage()` static method to safely delete underlying files of an MMKV instance. diff --git a/Core/MMKVPredef.h b/Core/MMKVPredef.h index 7459cd4c..8d17e7cd 100755 --- a/Core/MMKVPredef.h +++ b/Core/MMKVPredef.h @@ -34,7 +34,7 @@ #include #include -constexpr auto MMKV_VERSION = "v1.3.3"; +constexpr auto MMKV_VERSION = "v1.3.4"; #ifdef DEBUG # define MMKV_DEBUG diff --git a/MMKV.podspec b/MMKV.podspec index 040bbf89..ec24626c 100644 --- a/MMKV.podspec +++ b/MMKV.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKV" - s.version = "1.3.3" + s.version = "1.3.4" s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat." s.description = <<-DESC @@ -32,7 +32,7 @@ Pod::Spec.new do |s| "CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO", } - s.dependency 'MMKVCore', '~> 1.3.3' + s.dependency 'MMKVCore', '~> 1.3.4' end diff --git a/MMKVAppExtension.podspec b/MMKVAppExtension.podspec index eeef4547..5958b7f5 100644 --- a/MMKVAppExtension.podspec +++ b/MMKVAppExtension.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKVAppExtension" - s.version = "1.3.3" + s.version = "1.3.4" 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.3.3' + s.dependency 'MMKVCore', '~> 1.3.4' end diff --git a/MMKVCore.podspec b/MMKVCore.podspec index 31118e5b..e08031a9 100644 --- a/MMKVCore.podspec +++ b/MMKVCore.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKVCore" - s.version = "1.3.3" + s.version = "1.3.4" 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 899407f1..6096cd30 100644 --- a/MMKVWatchExtension.podspec +++ b/MMKVWatchExtension.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "MMKVWatchExtension" - s.version = "1.3.3" + s.version = "1.3.4" 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.3.3' + s.dependency 'MMKVCore', '~> 1.3.4' end diff --git a/README.md b/README.md index bfd5d32a..f4dfd14a 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.3-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) +[![Release Version](https://img.shields.io/badge/release-1.3.4-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:1.3.3' - // replace "1.3.3" with any available version + implementation 'com.tencent:mmkv:1.3.4' + // replace "1.3.4" with any available version } ``` diff --git a/README_CN.md b/README_CN.md index e12694c2..ec7b790c 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.3' - // replace "1.3.3" with any available version + implementation 'com.tencent:mmkv:1.3.4' + // replace "1.3.4" with any available version } ``` 更多安装指引参考 [Android Setup](https://github.com/Tencent/MMKV/wiki/android_setup_cn)。 diff --git a/flutter/CHANGELOG.md b/flutter/CHANGELOG.md index 8ecbc02f..cc7d8ae8 100644 --- a/flutter/CHANGELOG.md +++ b/flutter/CHANGELOG.md @@ -1,4 +1,8 @@ # MMKV for Flutter Change Log + +## v1.3.4 / 2024-03-15 +* Make `trim()` more robust in multi-process mode. + ## v1.3.3 / 2024-01-25 * Add `removeStorage()` static method to safely delete underlying files of an MMKV instance. * Add protection from a potential crash of a multi-process MMKV loading due to the MMKV file not being valid. diff --git a/flutter/README.md b/flutter/README.md index d28f6343..ac8cb4fd 100644 --- a/flutter/README.md +++ b/flutter/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.3-brightgreen.svg)](https://github.com/Tencent/MMKV/releases) +[![Release Version](https://img.shields.io/badge/release-1.3.4-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.3" + mmkv: ">=1.3.4" ... ``` -If you already include MMKV native lib in your App, you need to upgrade to version newer than v1.3.3. +If you already include MMKV native lib in your App, you need to upgrade to version newer than v1.3.4. #### iOS To avoid conflict of the native lib name 'libMMKV.so' on iOS, we need to **change the plugin name 'mmkv' to 'mmkvflutter'**. diff --git a/flutter/android/build.gradle b/flutter/android/build.gradle index 83e27b26..a075e9de 100644 --- a/flutter/android/build.gradle +++ b/flutter/android/build.gradle @@ -34,6 +34,6 @@ android { } dependencies { - implementation 'com.tencent:mmkv:1.3.3' + implementation 'com.tencent:mmkv:1.3.4' } } diff --git a/flutter/example/android/app/build.gradle b/flutter/example/android/app/build.gradle index b14f2d0d..86dacb7a 100644 --- a/flutter/example/android/app/build.gradle +++ b/flutter/example/android/app/build.gradle @@ -49,7 +49,7 @@ android { } dependencies { - implementation('com.tencent:mmkv:1.3.3') + implementation('com.tencent:mmkv:1.3.4') constraints { implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") { diff --git a/flutter/ios/mmkvflutter.podspec b/flutter/ios/mmkvflutter.podspec index 6aaee78d..4247b77e 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.3.3' + s.version = '1.3.4' 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.3.3' + s.dependency 'MMKV', '>= 1.3.4' s.platform = :ios, '11.0' # Flutter.framework does not contain a i386 slice. diff --git a/flutter/pubspec.yaml b/flutter/pubspec.yaml index 3b50b022..9e6f14c8 100644 --- a/flutter/pubspec.yaml +++ b/flutter/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.3 +version: 1.3.4 homepage: https://github.com/Tencent/mmkv environment: diff --git a/iOS/MMKV/MMKV.xcodeproj/project.pbxproj b/iOS/MMKV/MMKV.xcodeproj/project.pbxproj index 409eeab8..e45e36c4 100644 --- a/iOS/MMKV/MMKV.xcodeproj/project.pbxproj +++ b/iOS/MMKV/MMKV.xcodeproj/project.pbxproj @@ -493,7 +493,7 @@ INFOPLIST_FILE = "MMKV copy-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.3.3; + MARKETING_VERSION = 1.3.4; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -535,7 +535,7 @@ INFOPLIST_FILE = "MMKV copy-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.3.3; + MARKETING_VERSION = 1.3.4; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -735,7 +735,7 @@ INFOPLIST_FILE = "$(SRCROOT)/MMKV/Resources/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.3.3; + MARKETING_VERSION = 1.3.4; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -774,7 +774,7 @@ INFOPLIST_FILE = "$(SRCROOT)/MMKV/Resources/Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.3.3; + MARKETING_VERSION = 1.3.4; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -819,7 +819,7 @@ INFOPLIST_FILE = "MMKVAppExtension copy-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.3.3; + MARKETING_VERSION = 1.3.4; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit, @@ -863,7 +863,7 @@ INFOPLIST_FILE = "MMKVAppExtension copy-Info.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; - MARKETING_VERSION = 1.3.3; + MARKETING_VERSION = 1.3.4; "OTHER_LDFLAGS[sdk=iphoneos*]" = ( "-framework", UIKit,