Comments (19)
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
from mmkv.
Does the big event mean WeChat porting to OHOS?
from mmkv.
The undergoing work can be found in the branch dev_openharmony. It's still in an early stage.
from mmkv.
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);
from mmkv.
The official support of MMKV for OpenHarmonyOS is under construction. You can wait for it.
from mmkv.
预估多久面市?
from mmkv.
I can't say for sure. Eventually, it should be released before the next big event of the OHOS Next.
from mmkv.
24年年底之前绝对上线🤪
from mmkv.
牛啊牛啊
from mmkv.
from mmkv.
最新测试结果,真机一样有问题
from mmkv.
最新测试结果,真机一样有问题
from mmkv.
最新测试结果,真机一样有问题
但是我满足呀,手机目前Mate 60 Pro Preview 2版本 ,模拟器也是Beta1版本
from mmkv.
What's the log from hilog?
from mmkv.
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 <native_bridge.cpp:337::initialize> NAPI Error: code 6, msg Need number
04-19 09:06:29.499 43415-43415 A00000/testTag pid-43415 I Ability onWindowStageCreate
04-19 09:06:29.499 43415-43415 A03D00/JSAPP pid-43415 I 初始化配置缓存框架
04-19 09:06:29.501 43415-43415 A00000/testTag pid-43415 I Ability onForeground
from mmkv.
It's fixed in "@tencent/mmkv": "1.3.5-alpha".
from mmkv.
也遇到了,需要指定MMKVLogLevel才可以,我这样就可以了:MMKV.initializeWithPath(filePath, context.cacheDir, MMKVLogLevel.LevelInfo)
from mmkv.
也遇到了,需要指定MMKVLogLevel才可以,我这样就可以了:MMKV.initializeWithPath(filePath, context.cacheDir, MMKVLogLevel.LevelInfo)
Try it.
It's fixed in "@tencent/mmkv": "1.3.5-alpha".
from mmkv.
It's released in v1.3.5.
from mmkv.
Related Issues (20)
- Query related to encryption key size increase HOT 1
- ohos中json字符串末尾分号丢失 HOT 5
- 鸿蒙 ide版本 Build Version: 5.0.3.100 api12 初始化的时候必现sysFreeze HOT 4
- MMKV crash (report from bugly) HOT 1
- Importing ArkTS files to JS and TS files is not allowed. <ArkTSCheck> HOT 4
- 鸿蒙导入MMKV初始化崩溃 HOT 3
- Thread 1: "MMKV not initialized properly, must call +initializeMMKV: in main thread before calling any other MMKV methods" HOT 16
- 鸿蒙版本存入字符串和取出字符串不匹配 HOT 1
- MMKV for HarmonyOS NEXT 在ts文件中无法使用 HOT 7
- 【建议】建议MMKV的python端打包发布 HOT 4
- Cocoapods 源最新版本1.2.16 ,没找到1.3.5 等版本 HOT 1
- 保存后,马上读能读到,但杀死app后读读不到 HOT 4
- 在模拟器上会crash,真机上运行正常,这是为啥? HOT 2
- android系统上mmkv生成的数据文件在鸿蒙中使用 HOT 2
- mmkv 1.3.5版本不再支持armeabi-v7a ? HOT 1
- 鸿蒙next版本MMKV 取出的数据比保存的数据丢了一个字符 HOT 2
- Importing ArkTS files to JS and TS files is not allowed. <ArkTSCheck> HOT 2
- 鸿蒙版本的MMKV,double、float、int、bool现在不能返回undefined HOT 4
- 鸿蒙版本的MMKV中没有getAll方法 HOT 1
- 能否提供getAll接口,返回Object类型value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmkv.