Flipper MMKV Viewer Plugin
Introduction
A plugin for the debug tool Flipper that inspect the MMKV file of your native app.
It can view or edit the key-value inside the MMKV file.
Currently only Android is supported.
Note:
MMKV did not implement OnSharedPreferenceChangeListener on Android, so you should update the data manually by press "Refresh" Button.
Setup
Flipper Desktop
- Installed Flipper Desktop
- Go to Manage Plugins by pressing the button in the lower left corner of the Flipper app, or in the View menu
- Select Install Plugins and search for
mmkv-viewer
- Press the Install button
Android
- Add Flipper Android SDK to
build.gradle
on your app module:
dependencies { // please use Latest Version debugImplementation 'com.facebook.flipper:flipper:0.30.1' debugImplementation 'com.facebook.soloader:soloader:0.8.0' releaseImplementation 'com.facebook.flipper:flipper-noop:0.30.1'}
- Add JitPack in your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } }}
- Add this plugin library as a dependency in your app's build.gradle file:
dependencies { // please use Latest Version debugImplementation 'com.github.ddyos:flipper-plugin-mmkv-viewer:1.0.0'}
- Init the plugin:
val client = AndroidFlipperClient.getInstance(this)client.addPlugin(MMKVFlipperPlugin("other_mmkv"))client.start()
Android Demo
See the projects in the sample
folder.
License
MIT License, as found in the LICENSE file.