149 Commits

Author SHA1 Message Date
guoling 9cee61ee48 add harness for ohos ArrayBuffer 2026-10-16 15:43:58 +08:00
guoling 522cf55fa1 Prepare for v2.4.3 hotfix 2026-10-15 19:40:49 +08:00
guoling 29bbb179f9 Fix OpenHarmony ArrayBuffer slice validation
Validate numeric ranges, backing-buffer bounds, and typed-array alignment before forming slices. Preserve zero-copy writes and handle empty buffers safely.

Add portable regression coverage of the production callbacks with N-API and MMKV test doubles; 1,144 checks pass under ASan and UBSan.
2026-10-14 15:56:05 +08:00
toyeshhm 9012a9801a Fix undefined variables in README code samples and doc typos
- flutter/mmkv/README.md, OpenHarmony/MMKV/README.md: the reKey sample
  calls kmmkv.reKey(), but the instance is named mmkv
- OpenHarmony/MMKV/README.md: the TypedArray sample calls
  kv.decodeUint8Array() on an undefined kv; use mmkv
- OpenHarmony/MMKV/README.md: AES-258 -> AES-256
- CONTRIBUTING.md: accecpt -> accept, Additionly -> Additionally
2026-10-04 09:08:46 -05:00
guoling 79b6c97e78 udpate date of v2.4.2 2026-08-21 11:01:58 +08:00
guoling 6df31b7c0b Prepare for v2.4.2 hotfix 2026-08-20 17:42:52 +08:00
guoling 8e9883ef6f Fix one-year expiration constants 2026-08-04 21:40:24 +08:00
guoling 01cb6aa51c add auther email for ohpm package 2026-07-30 16:19:51 +08:00
guoling aba19d49df update change log 2026-07-30 14:47:23 +08:00
guoling b97eafecc6 update changelog date 2026-07-29 20:41:11 +08:00
guoling 4287c37f45 prepare for v2.4.1 2026-07-29 20:37:56 +08:00
guoling 4e3535f2c8 Harden MMKV close lifecycle handling #1669 2026-07-29 14:57:14 +08:00
guoling f3b27766a2 fix MMKV instance lifecycle handling #1669 2026-07-28 19:35:21 +08:00
guoling e8168d323a tidy ohos project config 2026-03-25 15:58:11 +08:00
guoling b6edcb64dd tidy 2026-03-24 11:02:11 +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 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 d7f2324ae7 add defaultMMKVWithConfig() for ohos 2026-03-18 12:39:06 +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 68b97af69f update readme for ohos & flutter 2025-12-04 12:21:50 +08:00
guoling 16aa77193a update project setting 2025-12-02 20:28:03 +08:00
guoling 168fd758fb prepare for v2.3.0 2025-12-02 19:01:30 +08:00
guoling 69c21f0d46 add aes256 option on OHOS 2025-12-01 20:14:07 +08:00
guoling 617f8f9731 update OHOS settings 2025-09-29 13:01:00 +08:00
guoling 71ee4df1f7 v2.2.4 2025-09-25 15:16:00 +08:00
guoling 6545be23fe prepare for v2.2.3 2025-08-20 17:23:21 +08:00
guoling 4f44fa1c16 robust callback handler processing 2025-05-15 16:18:49 +08:00
guoling 9180143b64 update some dep 2025-05-08 12:51:59 +08:00
guoling 8093cb35e1 prepare for v2.2.2 2025-05-08 11:52:46 +08:00
guoling 6ee1a6d6d6 tidy ohos 2025-04-25 14:18:12 +08:00
guoling a6900eb0d8 add importFrom() for OHOS 2025-04-25 14:12:53 +08:00
guoling e00f5ee3af prepare for v2.2.0 2025-04-24 17:40:49 +08:00
guoling 82c32013ef remove checkProcessMode() from OHOS 2025-04-23 14:24:33 +08:00
guoling 185f867888 tidy 2025-04-22 20:02:27 +08:00
guoling 0e05353b4a add checkExist(), isFileValid() and groupPath() for Flutter, fix checkContentChangedByOuterProcess() not working bug 2025-04-22 18:09:12 +08:00
guoling 6290617fd2 add checkExist() for Android 2025-04-22 15:34:34 +08:00
guoling 90675fe0b8 add checkExist() for OHOS 2025-04-22 15:25:47 +08:00
guoling 1817136006 update ohpm 2025-02-19 20:14:35 +08:00
guoling 8493e1bea7 update change log date 2025-02-18 15:38:27 +08:00
guoling d8ca310f25 remove useless res & setting in OHOS #1490 2025-02-18 10:31:33 +08:00
guoling 4c4ff9d54f prepare for v2.1.0 2025-02-14 20:24:18 +08:00
guoling f23e95c652 support using MMKVCore at Apple platform in pure C++ code 2025-02-14 19:43:48 +08:00
guoling 6a8338b634 add demo of using native C++ ABI in OHOS 2025-01-10 20:27:52 +08:00
guoling 66b090e237 add public headers to ohpm 2025-01-10 11:50:23 +08:00
guoling 49d536b0af NameSpace works on flutter & ArkTS 2025-01-07 16:14:08 +08:00
guoling 786a0db2af update some deps 2024-12-27 21:21:42 +08:00