flipper-plugin-mmkv-viewer icon indicating copy to clipboard operation
flipper-plugin-mmkv-viewer copied to clipboard

能否直接遍历MMKV目录而不用指定文件名

Open tankcong opened this issue 3 years ago • 3 comments

有些动态文件名的MMKV存储场景,不太方便在初始化时提前addPlugin,请问是否可以增加遍历MMKV目录的功能?

tankcong avatar Nov 20 '20 02:11 tankcong

补充: 能否在MMKVFlipperPlugin增加 add(name)功能,因为FlipperClient本身限制一种Plugin只能add一次,所以在需要动态添加需要观察的文件不太好做。目前我是自己维护一个动态列表,每次需要新增就先从FlipperClient removePlugin然后再重新添加。

tankcong avatar Nov 20 '20 02:11 tankcong

  • Add all MMKV files from root folder automatically.

Considering that it is not possible to flexibly set the encrypt key of the file in this way, so it is not implemented in this way.

  • Dynamically add files that need to be observed.

Great idea, may add this feature later.

ddyos avatar Apr 22 '21 02:04 ddyos

补充: 能否在MMKVFlipperPlugin增加 add(name)功能,因为FlipperClient本身限制一种Plugin只能add一次,所以在需要动态添加需要观察的文件不太好做。目前我是自己维护一个动态列表,每次需要新增就先从FlipperClient removePlugin然后再重新添加。

Hi, I have encapsulated MMKV and provided a Flipper desktop plugin. Maybe it can solve your problem. you can find it at https://github.com/porum/KVCompat

porum avatar Mar 29 '23 08:03 porum