20 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 64ac23ceb4 Preserve Android KMP string interoperability 2026-09-07 10:24:56 +08:00
guoling baf36b8695 Refine v2.4.2 hardening fixes 2026-08-20 21:42:19 +08:00
guoling 6df31b7c0b Prepare for v2.4.2 hotfix 2026-08-20 17:42:52 +08:00
guoling fd0b664940 Fix KMP expiration and UTF-8 consistency 2026-08-05 13:39:29 +08:00
guoling 4500cff761 Preserve KMP string and empty byte values 2026-08-04 21:46:13 +08:00
guoling b48ffdd8ba Polish experimental KMP support for v2.4.1 2026-07-29 16:22:05 +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 e3060b1a34 Polish v2.4.1 release docs and Central handoff
Document KMP in the root readmes and complete the v2.4.1 release settings. Automatically transfer completed Gradle maven-publish uploads from the OSSRH Staging API to Central Portal, removing the manual curl step while keeping user-managed review as the default.
2026-07-28 17:52:04 +08:00
guoling da6ee7eee5 Fix Maven Central release artifacts
Add Android source JARs, support the existing repository credentials and file-based Gradle signing for KMP, and avoid shared signature outputs across target publications.
2026-07-28 17:16:50 +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 520a9a189c Add minimal KMP Android and iOS packaging for v2.4.1 2026-06-26 12:02:55 +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