11 Commits

Author SHA1 Message Date
guoling 198186350d Fix KMP IDE imports and sample builds 2026-10-16 19:07:58 +08:00
guoling 522cf55fa1 Prepare for v2.4.3 hotfix 2026-10-15 19:40:49 +08:00
Santiago Mattiauda f16572b570 feat(kmp): capture Context via App Startup for zero-argument initialize() on Android
Add an AndroidX App Startup Initializer that only captures the application
Context on Android (never triggers native init), plus a new
MMKV.Companion.initialize(logLevel) overload that uses it. This matches the
explicit-but-Context-free initialize() contract every other MMKV platform
(iOS/Windows/POSIX/HarmonyOS) already has. Existing Context-taking overloads
are unchanged.

Closes #1689
2026-09-13 21:57:18 -03:00
guoling 6df31b7c0b Prepare for v2.4.2 hotfix 2026-08-20 17:42:52 +08:00
guoling b48ffdd8ba Polish experimental KMP support for v2.4.1 2026-07-29 16:22:05 +08:00
guoling e00ecf0408 Harden v2.4.1 KMP release packaging
Fix Android and iOS KMP API parity, empty-byte handling, handler behavior, and runtime version metadata. Harden standalone native interop and Maven Central publication, add smoke tests and publishing documentation, and validate the published package on a physical iPhone.
2026-07-28 16:44:46 +08:00
guoling 050d8c874f add NameSpace to c bridge 2026-03-24 19:44:51 +08:00
guoling b90f15a3ef tidy kmp 2026-03-24 17:27:17 +08:00
guoling a380314d5a add desktop for kmp 2026-03-24 17:04:56 +08:00
guoling 3cf58a3777 add win32 & linux support for kmp 2026-03-24 13:29:14 +08:00
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