multi process mode for mmkv

This commit is contained in:
1
2025-07-27 16:20:50 +08:00
parent 5f02aac930
commit 6412ebe35a

View File

@@ -49,7 +49,7 @@ class App : Application(), ImageLoaderFactory {
override fun onCreate() {
super.onCreate()
MMKV.initialize(this)
kv = MMKV.defaultMMKV()
kv = MMKV.defaultMMKV(MMKV.MULTI_PROCESS_MODE, null)
kv.enableCompareBeforeSet()
Thread.setDefaultUncaughtExceptionHandler { t, e ->
showError(e)