Giter Club home page Giter Club logo

Comments (19)

lingol avatar lingol commented on June 11, 2024 2

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.

alhah avatar alhah commented on June 11, 2024 1

Does the big event mean WeChat porting to OHOS?

from mmkv.

lingol avatar lingol commented on June 11, 2024 1

The undergoing work can be found in the branch dev_openharmony. It's still in an early stage.

from mmkv.

lingol avatar lingol commented on June 11, 2024 1

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.

lingol avatar lingol commented on June 11, 2024

The official support of MMKV for OpenHarmonyOS is under construction. You can wait for it.

from mmkv.

ChawLoo avatar ChawLoo commented on June 11, 2024

预估多久面市?

from mmkv.

lingol avatar lingol commented on June 11, 2024

I can't say for sure. Eventually, it should be released before the next big event of the OHOS Next.

from mmkv.

wangyatong avatar wangyatong commented on June 11, 2024

24年年底之前绝对上线🤪

from mmkv.

ChawLoo avatar ChawLoo commented on June 11, 2024

牛啊牛啊

from mmkv.

ChawLoo avatar ChawLoo commented on June 11, 2024

我mini m2芯片,跑的模拟器、真机跑了也有问题
image

from mmkv.

ChawLoo avatar ChawLoo commented on June 11, 2024

最新测试结果,真机一样有问题

from mmkv.

pioneerz avatar pioneerz commented on June 11, 2024

最新测试结果,真机一样有问题

我mini m2芯片,跑的模拟器 image

image
这个限制还挺多的

from mmkv.

ChawLoo avatar ChawLoo commented on June 11, 2024

最新测试结果,真机一样有问题

我mini m2芯片,跑的模拟器 image

image 这个限制还挺多的

但是我满足呀,手机目前Mate 60 Pro Preview 2版本 ,模拟器也是Beta1版本
image

from mmkv.

lingol avatar lingol commented on June 11, 2024

What's the log from hilog?

from mmkv.

ChawLoo avatar ChawLoo commented on June 11, 2024

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

image

from mmkv.

lingol avatar lingol commented on June 11, 2024

It's fixed in "@tencent/mmkv": "1.3.5-alpha".

from mmkv.

lebusishu avatar lebusishu commented on June 11, 2024

我mini m2芯片,跑的模拟器、真机跑了也有问题 image

也遇到了,需要指定MMKVLogLevel才可以,我这样就可以了:MMKV.initializeWithPath(filePath, context.cacheDir, MMKVLogLevel.LevelInfo)

from mmkv.

lingol avatar lingol commented on June 11, 2024

我mini m2芯片,跑的模拟器、真机跑了也有问题 image

也遇到了,需要指定MMKVLogLevel才可以,我这样就可以了:MMKV.initializeWithPath(filePath, context.cacheDir, MMKVLogLevel.LevelInfo)

Try it.
It's fixed in "@tencent/mmkv": "1.3.5-alpha".

from mmkv.

lingol avatar lingol commented on June 11, 2024

It's released in v1.3.5.

from mmkv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.