Skip to content

Commit 8093cb3

Browse files
committed
prepare for v2.2.2
1 parent 467c44a commit 8093cb3

24 files changed

+70
-35
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.1
17+
VERSION_NAME_PREFIX=2.2.2
1818
#VERSION_NAME_SUFFIX=-SNAPSHOT
1919
VERSION_NAME_SUFFIX=
2020

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
# MMKV Change Log
2+
## v2.2.2 / 2025-05-08
3+
This is a hot fix version mainly **for Android/Linux platforms**. It’s highly recommended for v2.2.0~v2.2.1 users.
4+
### Changes for All platforms
5+
* Improve file lock consistency for Mayfly FD MMKV instances.
6+
7+
### Android
8+
* Fix a potential ANR on multi-process mode MMKV init/creation.
9+
10+
### POSIX
11+
* Fix a potential ANR on multi-process mode MMKV init/creation on Linux.
12+
13+
### iOS/macOS
14+
* Retain the callback handler to prevent a potential short-lived callback handler from crashing.
15+
16+
### Win32
17+
* Improve efficiency on MMKV instance init/creation.
18+
219
## v2.2.1 / 2025-04-25
320
### Changes for All platforms
421
* Add `importFrom()`.

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.1";
37+
constexpr auto MMKV_VERSION = "v2.2.2";
3838

3939
#ifdef DEBUG
4040
# define MMKV_DEBUG

MMKV.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 = "MMKV"
4-
s.version = "2.2.1"
4+
s.version = "2.2.2"
55
s.summary = "MMKV is a cross-platform key-value storage framework developed by WeChat."
66

77
s.description = <<-DESC
@@ -33,7 +33,7 @@ Pod::Spec.new do |s|
3333
"CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF" => "NO",
3434
}
3535

36-
s.dependency 'MMKVCore', '~> 2.2.1'
36+
s.dependency 'MMKVCore', '~> 2.2.2'
3737

3838
end
3939

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.1"
4+
s.version = "2.2.2"
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.1'
34+
s.dependency 'MMKVCore', '~> 2.2.2'
3535

3636
end
3737

MMKVCore.podspec

Lines changed: 1 addition & 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.1"
4+
s.version = "2.2.2"
55
s.summary = "MMKVCore for MMKV. MMKV is a cross-platform key-value storage framework developed by WeChat."
66

77
s.description = <<-DESC

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.1"
4+
s.version = "2.2.2"
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.1'
34+
s.dependency 'MMKVCore', '~> 2.2.2'
3535

3636
end
3737

OpenHarmony/MMKV/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# MMKV for HarmonyOS NEXT Change Log
2+
## v2.2.2 / 2025-05-08
3+
This is a hot fix version mainly **for Android/Linux platforms**. It’s highly recommended for v2.2.0~v2.2.1 users.
4+
* Improve file lock consistency for Mayfly FD MMKV instances.
5+
26
## v2.2.1 / 2025-04-25
37
* Add `importFrom()`.
48

OpenHarmony/MMKV/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tencent/mmkv",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "The official OpenHarmony package of MMKV. An efficient, small mobile key-value storage framework developed by WeChat.",
55
"main": "Index.ets",
66
"author": "guoling",

README.md

Lines changed: 3 additions & 3 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.1-brightgreen.svg)](https://github.com/Tencent/MMKV/releases)
3+
[![Release Version](https://img.shields.io/badge/release-2.2.2-brightgreen.svg)](https://github.com/Tencent/MMKV/releases)
44
[![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)
55

66
中文版本请参看[这里](./README_CN.md)
@@ -28,8 +28,8 @@ Add the following lines to `build.gradle` on your app module:
2828

2929
```gradle
3030
dependencies {
31-
implementation 'com.tencent:mmkv:2.2.1'
32-
// replace "2.2.1" with any available version
31+
implementation 'com.tencent:mmkv:2.2.2'
32+
// replace "2.2.2" with any available version
3333
}
3434
```
3535

README_CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ MMKV 是基于 mmap 内存映射的 key-value 组件,底层序列化/反序列
2222

2323
```gradle
2424
dependencies {
25-
implementation 'com.tencent:mmkv:2.2.1'
26-
// replace "2.2.1" with any available version
25+
implementation 'com.tencent:mmkv:2.2.2'
26+
// replace "2.2.2" with any available version
2727
}
2828
```
2929
从 v2.0.0 起, MMKV **去掉了 32-bit 架构的支持**、API level 22 及以下的支持, 如有这类需求,请使用 v1.3.x LTS 版本。

flutter/mmkv/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# MMKV for Flutter Change Log
2+
## v2.2.2 / 2025-05-08
3+
This is a hot fix version mainly **for Android platforms**. It’s highly recommended for v2.2.0~v2.2.1 users.
4+
* Improve file lock consistency for Mayfly FD MMKV instances.
5+
* Fix a potential Android ANR on multi-process mode MMKV init/creation.
6+
27
## v2.2.1 / 2025-4-25
38
* Add `importFrom()`.
49
* Fix Android initialize bug.

flutter/mmkv/example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ android {
5252
}
5353

5454
dependencies {
55-
implementation('com.tencent:mmkv:2.2.1')
55+
implementation('com.tencent:mmkv:2.2.2')
5656

5757
constraints {
5858
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0") {

flutter/mmkv/pubspec.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: mmkv
22
description: An efficient, small mobile key-value storage framework developed by WeChat. Works on Android & iOS.
3-
version: 2.2.1
3+
version: 2.2.2
44
homepage: https://github.com/Tencent/mmkv
55
repository: https://github.com/Tencent/MMKV/tree/master/flutter/mmkv
66

@@ -13,13 +13,13 @@ dependencies:
1313
sdk: flutter
1414
ffi: ^2.0.0
1515
mmkv_ios:
16-
'>=2.2.1 <2.3.0'
16+
'>=2.2.2 <2.3.0'
1717
# path: ../mmkv_ios
1818
mmkv_android:
19-
'>=2.2.1 <2.3.0'
19+
'>=2.2.2 <2.3.0'
2020
# path: ../mmkv_android
2121
mmkv_ohos:
22-
'>=2.2.1 <2.3.0'
22+
'>=2.2.2 <2.3.0'
2323
# path: ../mmkv_ohos
2424
mmkv_platform_interface:
2525
'>=2.2.1 <2.3.0'

flutter/mmkv_android/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# MMKV Platform Android Change Log
2-
## v2.2.1 / 2025-4-25
2+
## v2.2.2 / 2025-05-08
3+
Keep up with native lib v2.2.2.
4+
5+
## v2.2.1 / 2025-04-25
36
Keep up with native lib v2.2.1.
47

5-
## v2.2.0 / 2025-4-24
8+
## v2.2.0 / 2025-04-24
69
Keep up with native lib v2.2.0.
710

811
## v2.1.0 / 2025-02-18

flutter/mmkv_android/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ android {
3434
}
3535

3636
dependencies {
37-
implementation 'com.tencent:mmkv:[2.2.1, 2.3)'
37+
implementation 'com.tencent:mmkv:[2.2.2, 2.3)'
3838
}
3939
}

flutter/mmkv_android/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: mmkv_android
22
description: Android platform implementation of MMKV.
33
repository: https://github.com/Tencent/MMKV/tree/master/flutter/mmkv_ios
4-
version: 2.2.1
4+
version: 2.2.2
55
homepage: https://github.com/Tencent/mmkv
66

77
environment:

flutter/mmkv_ios/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# MMKV Platform iOS Change Log
2-
## v2.2.1 / 2025-4-25
2+
## v2.2.2 / 2025-05-08
3+
Keep up with native lib v2.2.2.
4+
5+
## v2.2.1 / 2025-04-25
36
Keep up with native lib v2.2.1.
47

5-
## v2.2.0 / 2025-4-24
8+
## v2.2.0 / 2025-04-24
69
Keep up with native lib v2.2.0.
710

811
## v2.1.0 / 2025-02-18

flutter/mmkv_ios/ios/mmkv_ios.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Pod::Spec.new do |s|
77
s.name = 'mmkv_ios'
8-
s.version = '2.2.1'
8+
s.version = '2.2.2'
99
s.summary = 'MMKV is a cross-platform key-value storage framework developed by WeChat.'
1010
s.description = <<-DESC
1111
The MMKV, for Flutter.
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
1919
s.source_files = 'Classes/**/*'
2020
s.public_header_files = 'Classes/**/MMKVPlugin.h'
2121
s.dependency 'Flutter'
22-
s.dependency 'MMKV', '>= 2.2.1', '< 2.3'
22+
s.dependency 'MMKV', '>= 2.2.2', '< 2.3'
2323
s.platform = :ios, '13.0'
2424

2525
# Flutter.framework does not contain a i386 slice.

flutter/mmkv_ios/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: mmkv_ios
22
description: iOS platform implementation of MMKV.
33
repository: https://github.com/Tencent/MMKV/tree/master/flutter/mmkv_ios
4-
version: 2.2.1
4+
version: 2.2.2
55
homepage: https://github.com/Tencent/mmkv
66

77
environment:

flutter/mmkv_ohos/CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# MMKV Platform OHOS Change Log
2-
## v2.2.1 / 2025-4-25
2+
## v2.2.2 / 2025-05-08
3+
Keep up with native lib v2.2.2.
4+
5+
## v2.2.1 / 2025-04-25
36
Keep up with native lib v2.2.1.
47

5-
## v2.2.0 / 2025-4-24
8+
## v2.2.0 / 2025-04-24
69
Keep up with native lib v2.2.0.
710

811
## v2.1.0 / 2025-02-18

flutter/mmkv_ohos/ohos/oh-package.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "Apache-2.0",
88
"dependencies": {
99
"@ohos/flutter_ohos": "file:./har/flutter.har",
10-
"@tencent/mmkv": ">=2.2.1 <2.3"
10+
"@tencent/mmkv": ">=2.2.2 <2.3"
1111
// "@tencent/mmkv": "file:/Users/lingol/Developer/mmkv/OpenHarmony/MMKV/build/default/outputs/default/MMKV.har"
1212
},
1313
"devDependencies": {},

flutter/mmkv_ohos/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: mmkv_ohos
22
description: OHOS platform implementation of MMKV.
33
repository: https://github.com/Tencent/MMKV/tree/master/flutter/mmkv_ohos
4-
version: 2.2.1
4+
version: 2.2.2
55
homepage: https://github.com/Tencent/mmkv
66

77
environment:

iOS/MMKV/MMKV.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@
609609
GCC_WARN_UNUSED_VARIABLE = YES;
610610
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
611611
MACOSX_DEPLOYMENT_TARGET = 10.15;
612-
MARKETING_VERSION = 2.2.1;
612+
MARKETING_VERSION = 2.2.2;
613613
MTL_ENABLE_DEBUG_INFO = YES;
614614
ONLY_ACTIVE_ARCH = YES;
615615
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator";
@@ -668,7 +668,7 @@
668668
GCC_WARN_UNUSED_VARIABLE = YES;
669669
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
670670
MACOSX_DEPLOYMENT_TARGET = 10.15;
671-
MARKETING_VERSION = 2.2.1;
671+
MARKETING_VERSION = 2.2.2;
672672
MTL_ENABLE_DEBUG_INFO = NO;
673673
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx appletvos appletvsimulator";
674674
TVOS_DEPLOYMENT_TARGET = 13.0;

0 commit comments

Comments
 (0)