MMKV icon indicating copy to clipboard operation
MMKV copied to clipboard

The MMKV for HarmonyOS NEXT version lacks the interface for parsing the float type.

Open xiaoxizi2303 opened this issue 1 year ago • 17 comments

The version of MMKV

v1.3.5

What's the issue?

The MMKV for HarmonyOS NEXT version lacks the interface for parsing the float type.

xiaoxizi2303 avatar Apr 25 '24 09:04 xiaoxizi2303

Sure. But the number type in JavaScript is double underneath. Is there real need to handle float from double?

lingol avatar Apr 25 '24 10:04 lingol

I need to parse the mmkv storage file generated in the Android project on the Harmony project. This file stores data of the float type. Therefore, an interface of the float type is required to parse the data of the float type.

xiaoxizi2303 avatar Apr 25 '24 10:04 xiaoxizi2303

Noted.

lingol avatar Apr 25 '24 10:04 lingol

Thank you. When can this interface be provided? Because the customer encounters the problem that the float type cannot be parsed when using the mmkv library.

xiaoxizi2303 avatar Apr 25 '24 11:04 xiaoxizi2303

Yes.

lingol avatar Apr 25 '24 13:04 lingol

Hello, when can the modification of this problem be released to the ohpm central warehouse of Harmony?

xiaoxizi2303 avatar Apr 29 '24 01:04 xiaoxizi2303

Hello, when can the modification of this problem be released to the ohpm central warehouse of Harmony?

If you are in a hurry, we can publish an alpha version of 1.3.6-alpha.

lingol avatar Apr 29 '24 02:04 lingol

Yes, we really need this version now, thank you very much

xiaoxizi2303 avatar Apr 29 '24 02:04 xiaoxizi2303

v1.3.6-alpha is live on OHPM.

lingol avatar Apr 29 '24 08:04 lingol

Okay, thank you very much.

xiaoxizi2303 avatar Apr 29 '24 08:04 xiaoxizi2303

After upgrading to 1.3.6-alpha I found some warnings occurred when compiling. However mmkv still works fine so this might not be a bug, but it's still a bit annoying.

> hvigor WARN: ArkTS:WARN File: D:/DevEcoProjects/SomeProject/oh_modules/.ohpm/@[email protected]/oh_modules/@tencent/mmkv/src/main/ets/utils/MMKV.ets:119:13
 Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)

WARN: ArkTS:WARN File: D:/DevEcoProjects/SomeProject/oh_modules/.ohpm/@[email protected]/oh_modules/@tencent/mmkv/src/main/ets/utils/MMKV.ets:139:13
 Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)

WARN: ArkTS:WARN File: D:/DevEcoProjects/SomeProject/oh_modules/.ohpm/@[email protected]/oh_modules/@tencent/mmkv/src/main/ets/utils/MMKV.ets:735:13
 Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)

WARN: ArkTS:WARN File: D:/DevEcoProjects/SomeProject/oh_modules/.ohpm/@[email protected]/oh_modules/@tencent/mmkv/src/main/ets/utils/MMKV.ets:752:13
 Use explicit types instead of "any", "unknown" (arkts-no-any-unknown)

WARN: ArkTS:WARN: For details about ArkTS syntax errors, see FAQs
WARN: ArkTS:WARN File: D:/DevEcoProjects/SomeProject/oh_modules/.ohpm/@[email protected]/oh_modules/@tencent/mmkv/src/main/ets/utils/MMKV.ets:21:20
 Currently module for 'libmmkv.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared.

HandwerSTD avatar May 04 '24 15:05 HandwerSTD

Noted.

lingol avatar May 05 '24 03:05 lingol

This problem is not found in the Harmony project of the new version.

xiaoxizi2303 avatar May 06 '24 01:05 xiaoxizi2303

All except this one are fixed. I can't find any document about this warning.

Currently module for 'libmmkv.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared.

lingol avatar May 06 '24 02:05 lingol

Other alarms are generated because the Harmony SDK updates the rules for verifying variable types.

xiaoxizi2303 avatar May 06 '24 03:05 xiaoxizi2303

The warning is fixed in v1.3.6-beta on OHPM.

lingol avatar May 09 '24 09:05 lingol

Okay, thanks.

xiaoxizi2303 avatar May 10 '24 06:05 xiaoxizi2303

It's fixed in v1.3.6.

lingol avatar Jul 05 '24 12:07 lingol