Comments (4)
As far as I learned, there's nothing like Parcel in Android.
So no, not in our plans.
from mmkv.
目前最新版本1.3.5支持boolean, number, bigint, string,boolean[], number[], string[], ArrayBuffer类型,是否可以提供自定义对象的存取接口?如果可以提供的话,麻烦回复一下时间、版本计划,多谢。
1.3.5版本对外导出的 是ets文件, 在鸿蒙工程中无法在ts文件 import ets,导致无法使用。 官方是否有计划 将导出ets文件改为ts, 避免有使用限制。
from mmkv.
1.3.5版本对外导出的 是ets文件, 在鸿蒙工程中无法在ts文件 import ets,导致无法使用。 官方是否有计划 将导出ets文件改为ts, 避免有使用限制。
How can one do that? I'd love to know.
MMKV's wrapper is developed in ArtTS and we don't want to change it to TS. How can we export it as TS without changing the MMKV wrapper from .ets to .ts?
from mmkv.
For the time being, you can encode/decode the object into JSON first. It's not ideal but it can get you going.
let user = {
username: 'lingol',
age: 21
}
// Serialize the object into a JSON string
mmkv.encodeString('user', JSON.stringify(user))
// Deserialize the JSON string into an object
let jsonUser = mmkv.decodeString('user') // { 'username': 'lingol', 'age': 21 }
let userObject = JSON.parse(jsonUser)
from mmkv.
Related Issues (20)
- 你好,有个崩溃帮忙看下 HOT 5
- 支持win x64吗?一直编译不了,能帮忙看看吗 HOT 8
- Non-fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library "libmmkv.so" not found HOT 1
- MMKV组件升级,双版本数据校验不匹配 HOT 4
- 鸿蒙Next纯血版本如何接入mmkv? HOT 19
- crash with MMKV.getInt[DEDUPED] HOT 10
- 升级MMKV CRC校验失败 数据清理 HOT 1
- How to use it directly in C++? HOT 2
- Cheers! How to start to add #import <MMKV/MMKV.h> to my source file? HOT 2
- flutter use mmkv:1.3.0 , android application destory HOT 3
- crashed in Harmony Next Emulator API 11 x86_64 HOT 15
- minsdk 23 bump HOT 5
- The MMKV for HarmonyOS NEXT version lacks the interface for parsing the float type. HOT 17
- POSIX平台构建demo程序时报错 HOT 3
- 多进程模式使用问题 HOT 1
- 在 HarmonyOS NEXT API 11 上初始化,发生崩溃,版本 : @tencent/mmkv":"1.3.5" HOT 1
- Fail to find any mmkv plugin dependencies HOT 3
- MMKV failed to build on iOS v1.3.5 HOT 4
- 一直有错误信息打印 HOT 1
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.