1877 Commits

Author SHA1 Message Date
guoling e197236714 Add Kotlin Multiplatform (KMP) wrapper for MMKV
KMP module at KMP/ exposes a Kotlin-idiomatic API in commonMain (com.tencent.mmkv.kmp),
with platform-specific implementations:
- androidMain: delegates to the existing com.tencent:mmkv Java library
- darwinMain: uses Kotlin/Native ObjC interop with the MMKV CocoaPod

Includes a Compose Multiplatform sample app (KMP/sample/) that demonstrates
MMKV initialization, encode/decode for all primitive types, named instances,
and key management on both Android and iOS.
2026-03-24 11:02:11 +08:00
guoling b6edcb64dd tidy 2026-03-24 11:02:11 +08:00
Guo Ling f7f0f47fa9 Merge pull request #1648 from Tencent/dev
fix cpp error
2026-03-19 15:42:13 +08:00
guoling a745e6bcaf fix cpp error 2026-03-19 15:41:19 +08:00
Guo Ling 7c8abd1314 Merge pull request #1647 from Tencent/dev
for v2.4.0
2026-03-19 15:28:10 +08:00
guoling 748f883b45 prepare for v2.4.0 2026-03-19 15:25:39 +08:00
guoling a2f49120ae update changelog for v2.4.0 2026-03-18 16:23:10 +08:00
guoling f3ddc30bdc add MMKVHandler.h to CocoaPods public headers and SPM fakeinclude 2026-03-18 16:23:05 +08:00
guoling 9348a93f26 refactor callback system into unified MMKVHandler across all platforms
Replace 4 separate static function pointers (LogHandler, ErrorHandler,
ContentChangeHandler, ContentLoadedHandler) with a single MMKVHandler
abstract class in Core C++. Update all 6 platform wrappers (iOS, Android,
OHOS, Python, Golang, Flutter) to use adapter classes bridging to the new
unified handler. Add onMMKVContentLoadSuccessfully callback to Android,
OHOS, Flutter, Python and Golang where it was previously missing.
2026-03-18 12:40:05 +08:00
guoling d90f664a2e add DefaultMMKVWithConfig() for golang 2026-03-18 12:39:06 +08:00
guoling 588a95ef39 add all-in-one config options to defaultMMKV() for python 2026-03-18 12:39:06 +08:00
guoling d7f2324ae7 add defaultMMKVWithConfig() for ohos 2026-03-18 12:39:06 +08:00
guoling e03452f006 add all-in-one config for golang 2026-03-06 16:17:05 +08:00
guoling 41321fbb6c add new options to python 2026-03-05 16:51:44 +08:00
guoling f4cb2357bc drop oldstyle actual size downgrade support 2026-03-03 20:10:30 +08:00
guoling 0c6d694dad fix iOS leak on getting NameSpace instance 2026-03-03 20:09:09 +08:00
guoling fec30f74c7 robust check on encryption mode #1642 2026-02-24 15:21:51 +08:00
guoling 683382f3d8 add getBytes() with string_view key for ObjC++ 2026-02-24 10:56:18 +08:00
guoling b56ce1004f merge ashmem size with expectedCapacity on Android & OHOS 2026-02-11 12:39:08 +08:00
guoling e28b2bf0fd add MMKVConfig for ohos 2026-02-10 17:44:48 +08:00
guoling c34424874e MMKV must be compiled with C++17 2026-02-10 17:37:28 +08:00
guoling 1980694c42 add MMKV config for flutter 2026-02-09 20:42:17 +08:00
guoling 6852cd98d9 up ios pod version 2026-02-09 20:12:11 +08:00
guoling ffcb07ee9f add default mmkv with config for iOS 2026-02-09 20:06:09 +08:00
guoling ed0cade7e8 add MMKVConfig for Android 2026-02-06 20:28:19 +08:00
guoling 1915d892f1 add MMKVConfig 2026-02-05 17:21:53 +08:00
guoling ac1817575d fix fcntl() OFD lock failure on ashmem #261 #1637 2026-02-02 16:05:38 +08:00
Guo Ling f6e6fbc5e0 convert log message to utf-8 by (changing src in utf-8) for win32 client 2026-01-30 18:04:08 +08:00
Guo Ling 59b6762dfd change log to debug 2026-01-30 16:03:42 +08:00
guoling 8599d2eb95 convert log message to utf-8 for win32 client 2026-01-29 20:49:01 +08:00
guoling 96390cc85a verify all page in win32 for corrupted file 2026-01-29 15:27:48 +08:00
guoling 06c6cf4536 update watch demo assets 2026-01-28 17:02:12 +08:00
guoling 2f5e86f239 support Swift Package Manager #535 2026-01-28 17:01:53 +08:00
guoling 9789080b25 fix iOS compile error on tryAtomicRename() 2025-12-29 17:05:54 +08:00
guoling e439582ab7 protect from m_file not valid for isDiskOfMMAPFileCorrupted() 2025-12-25 12:06:49 +08:00
Guo Ling 7a122fc8f7 Merge pull request #1614 from hossinasaadi/dev-contentNotify
implement onMMKVContentLoadSuccessfully
2025-12-23 11:02:55 +08:00
hossinasaadi 6acdef76d0 fix 2025-12-22 17:56:48 +03:30
hossinasaadi 34a8987ee3 add onMMKVContentLoadSuccessfully to register handler 2025-12-22 15:46:12 +03:30
hossinasaadi e8dba7762f fix public interface 2025-12-22 15:23:58 +03:30
hossinasaadi df721fa6cd add onMMKVContentLoadSuccessfully to content notify handler 2025-12-21 17:39:57 +03:30
guoling c708914c04 protect from delete file failure on corrupted files 2025-12-18 19:33:30 +08:00
guoling d99404baeb reduce absolutePath() call as much as possible 2025-12-16 18:32:19 +08:00
guoling 68b97af69f update readme for ohos & flutter 2025-12-04 12:21:50 +08:00
guoling 6370b65f07 correctly collect so-symbols on Android 2025-12-03 20:55:31 +08:00
guoling d70ed146d4 update change log on deprecated iOS methods 2025-12-03 20:32:43 +08:00
guoling 16aa77193a update project setting 2025-12-02 20:28:03 +08:00
Guo Ling 55b929a7c7 Merge pull request #1610 from Tencent/dev
fix pubspec typo
2025-12-02 20:27:51 +08:00
guoling e626bf4b64 fix pubspec typo 2025-12-02 20:27:25 +08:00
Guo Ling 381b96926b Merge pull request #1609 from Tencent/dev
for v2.3.0
v2.3.0
2025-12-02 19:20:09 +08:00
guoling 168fd758fb prepare for v2.3.0 2025-12-02 19:01:30 +08:00