Skip to content

Commit cf95303

Browse files
authored
Merge pull request #1590 from Tencent/dev
for v2.2.4
2 parents f4657ae + 71ee4df commit cf95303

33 files changed

+77
-45
lines changed

Android/MMKV/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ org.gradle.jvmargs=-Xmx1536m
1414
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1515
# org.gradle.parallel=true
1616

17-
VERSION_NAME_PREFIX=2.2.3
17+
VERSION_NAME_PREFIX=2.2.4
1818
#VERSION_NAME_SUFFIX=-SNAPSHOT
1919
VERSION_NAME_SUFFIX=
2020

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# MMKV Change Log
2+
## v2.2.4 / 2025-09-25
3+
This is a hotfix release mainly for iOS/macOS CocoaPods users.
4+
5+
### Changes for All platforms
6+
* Improve the performance of MMBuffer a little bit in some cases.
7+
8+
### iOS/macOS
9+
* Make MMKV and MMKVCore podspec define modules.
10+
211
## v2.2.3 / 2025-08-20
312
This is a feature release that brings **full desktop support to Flutter**. It also includes key bug fixes and enhancements for Android and other platforms.
413

Core/MMBuffer.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,8 @@ MMBuffer &MMBuffer::operator=(MMBuffer &&other) noexcept {
170170
#endif
171171
other.detach();
172172
} else {
173-
uint8_t tmp[SmallBufferSize()];
174-
memcpy(tmp, other.paddedBuffer, other.paddedSize);
175-
memcpy(other.paddedBuffer, paddedBuffer, paddedSize);
176-
memcpy(paddedBuffer, tmp, other.paddedSize);
177-
std::swap(paddedSize, other.paddedSize);
173+
paddedSize = other.paddedSize;
174+
memcpy(paddedBuffer, other.paddedBuffer, other.paddedSize);
178175
}
179176
}
180177

Core/MMKVPredef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <vector>
3535
#include <unordered_map>
3636

37-
constexpr auto MMKV_VERSION = "v2.2.3";
37+
constexpr auto MMKV_VERSION = "v2.2.4";
3838

3939
#ifdef DEBUG
4040
# define MMKV_DEBUG

MMKV.podspec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MMKV"
4-
s.version = "2.2.3"
4+
s.version = "2.2.4"
55
s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat."
66

77
s.description = <<-DESC
@@ -31,9 +31,10 @@ Pod::Spec.new do |s|
3131
"CLANG_CXX_LANGUAGE_STANDARD" => "gnu++20",
3232
"CLANG_CXX_LIBRARY" => "libc++",
3333
"CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO",
34+
"DEFINES_MODULE" => "YES",
3435
}
3536

36-
s.dependency 'MMKVCore', '~> 2.2.3'
37+
s.dependency 'MMKVCore', '~> 2.2.4'
3738

3839
end
3940

MMKVAppExtension.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MMKVAppExtension"
4-
s.version = "2.2.3"
4+
s.version = "2.2.4"
55
s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat."
66
s.module_name = "MMKVAppExtension"
77

@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
3131
"GCC_PREPROCESSOR_DEFINITIONS" => "MMKV_IOS_EXTENSION",
3232
}
3333

34-
s.dependency 'MMKVCore', '~> 2.2.3'
34+
s.dependency 'MMKVCore', '~> 2.2.4'
3535

3636
end
3737

MMKVCore.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MMKVCore"
4-
s.version = "2.2.3"
4+
s.version = "2.2.4"
55
s.summary = "MMKVCore for MMKV. MMKV is a cross-platform key-value storage framework developed by WeChat."
66

77
s.description = <<-DESC
@@ -36,6 +36,7 @@ Pod::Spec.new do |s|
3636
"CLANG_CXX_LANGUAGE_STANDARD" => "gnu++20",
3737
"CLANG_CXX_LIBRARY" => "libc++",
3838
"CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO",
39+
"DEFINES_MODULE" => "YES",
3940
'RELEASE' => {
4041
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) NDEBUG=1'
4142
}

MMKVWatchExtension.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "MMKVWatchExtension"
4-
s.version = "2.2.3"
4+
s.version = "2.2.4"
55
s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat."
66
s.module_name = "MMKVWatchExtension"
77

@@ -31,7 +31,7 @@ Pod::Spec.new do |s|
3131
"GCC_PREPROCESSOR_DEFINITIONS" => "MMKV_IOS_EXTENSION",
3232
}
3333

34-
s.dependency 'MMKVCore', '~> 2.2.3'
34+
s.dependency 'MMKVCore', '~> 2.2.4'
3535

3636
end
3737

OpenHarmony/MMKV/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# MMKV for HarmonyOS NEXT Change Log
2+
## v2.2.4 / 2025-09-25
3+
* Improve the performance of MMBuffer a little bit in some cases.
4+
25
## v2.2.3 / 2025-08-20
36
* Keep up with Core library v2.2.3.
47

OpenHarmony/MMKV/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![license](https://img.shields.io/badge/license-BSD_3-brightgreen.svg?style=flat)](https://github.com/Tencent/MMKV/blob/master/LICENSE.TXT)
22
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/Tencent/MMKV/pulls)
3-
[![Release Version](https://img.shields.io/badge/release-2.2.3-brightgreen.svg)](https://github.com/Tencent/MMKV/releases)
3+
[![Release Version](https://img.shields.io/badge/release-2.2.4-brightgreen.svg)](https://github.com/Tencent/MMKV/releases)
44
[![Platform](https://img.shields.io/badge/Platform-%20HarmonyOS%20NEXT-brightgreen.svg)](https://github.com/Tencent/MMKV/wiki/home)
55

66
MMKV is an **efficient**, **small**, **easy-to-use** mobile key-value storage framework used in the WeChat application. It's now available on **HarmonyOS NEXT**.
@@ -37,7 +37,7 @@ Or, you can add it to your project manually.
3737

3838
```json
3939
"dependencies": {
40-
"@tencent/mmkv": "~2.2.3",
40+
"@tencent/mmkv": "~2.2.4",
4141
}
4242
```
4343
* Then run

0 commit comments

Comments
 (0)