Closed ChawLoo closed 3 months ago
The official support of MMKV for OpenHarmonyOS is under construction. You can wait for it.
预估多久面市?
I can't say for sure. Eventually, it should be released before the next big event of the OHOS Next.
Does the big event mean WeChat porting to OHOS?
The undergoing work can be found in the branch dev_openharmony. It's still in an early stage.
24年年底之前绝对上线🤪
For those who would try, it's live on OHPM. https://ohpm.openharmony.cn/#/cn/detail/@tencent%2Fmmkv wiki https://github.com/Tencent/MMKV/wiki/ohos_setup
牛啊牛啊
我mini m2芯片,跑的模拟器、真机跑了也有问题
最新测试结果,真机一样有问题
最新测试结果,真机一样有问题
我mini m2芯片,跑的模拟器
这个限制还挺多的
最新测试结果,真机一样有问题
我mini m2芯片,跑的模拟器
这个限制还挺多的
但是我满足呀,手机目前Mate 60 Pro Preview 2版本 ,模拟器也是Beta1版本
What's the log from hilog?
What's the log from hilog?
04-19 09:06:29.479 43415-43415 A03D00/JSAPP pid-43415 I Callee constructor is OK string
04-19 09:06:29.479 43415-43415 A03D00/JSAPP pid-43415 I Ability::constructor callee is object [object Object]
04-19 09:06:29.487 43415-43415 A00000/MMKV pid-43415 I
I see. There's a bug in MMKV.initialize()
on handling optional parameters. Will fix in the next version.
For the time being, you can bypass this by passing the logLevel
param:
import { MMKV, MMKVLogLevel } from '@tencent/mmkv';
let appCtx = this.context.getApplicationContext();
MMKV.initialize(appCtx, MMKVLogLevel.LevelInfo);
It's fixed in "@tencent/mmkv": "1.3.5-alpha".
我mini m2芯片,跑的模拟器、真机跑了也有问题
也遇到了,需要指定MMKVLogLevel才可以,我这样就可以了:MMKV.initializeWithPath(filePath, context.cacheDir, MMKVLogLevel.LevelInfo)
我mini m2芯片,跑的模拟器、真机跑了也有问题
也遇到了,需要指定MMKVLogLevel才可以,我这样就可以了:MMKV.initializeWithPath(filePath, context.cacheDir, MMKVLogLevel.LevelInfo)
Try it. It's fixed in "@tencent/mmkv": "1.3.5-alpha".
原先想通过编译成CPP引入,但是那一块不太熟悉,原先打算用CMake编译后去接入,但是搞不明白