https://github.com/ddyos/flipper-plugin-mmkv-viewer
MMKV Viewer for Flipper
https://github.com/ddyos/flipper-plugin-mmkv-viewer
flipper flipper-plugin mmkv
Last synced: about 1 year ago
JSON representation
MMKV Viewer for Flipper
- Host: GitHub
- URL: https://github.com/ddyos/flipper-plugin-mmkv-viewer
- Owner: ddyos
- License: mit
- Created: 2020-01-31T09:26:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T09:21:14.000Z (over 4 years ago)
- Last Synced: 2024-08-11T11:57:33.539Z (almost 2 years ago)
- Topics: flipper, flipper-plugin, mmkv
- Language: Kotlin
- Size: 190 KB
- Stars: 25
- Watchers: 2
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flipper MMKV Viewer Plugin
[](https://jitpack.io/#ddyos/flipper-plugin-mmkv-viewer)
[](https://www.npmjs.com/package/flipper-plugin-mmkv-viewer)
*[English](README.md) | [简体中文](README.zh-cn.md)*
## Introduction
A plugin for the debug tool [Flipper](https://fbflipper.com) that inspect the [MMKV](https://github.com/Tencent/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
1. Installed [Flipper Desktop](https://fbflipper.com)
2. Go to **Manage Plugins** by pressing the button in the lower left corner of the Flipper app, or in the **View** menu
3. Select **Install Plugins** and search for `mmkv-viewer`
4. Press the **Install** button

### Android
1. Add [Flipper Android SDK](https://github.com/facebook/flipper) to `build.gradle` on your app module:
```gradle
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'
}
```
2. Add JitPack in your root build.gradle at the end of repositories:
```gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```
3. Add this plugin library as a dependency in your app's build.gradle file:
```gradle
dependencies {
// please use Latest Version
debugImplementation 'com.github.ddyos:flipper-plugin-mmkv-viewer:1.0.0'
}
```
4. Init the plugin:
```Kotlin
val client = AndroidFlipperClient.getInstance(this)
client.addPlugin(MMKVFlipperPlugin("other_mmkv"))
client.start()
```
## Android Demo
See the projects in the [`sample`](/android/sample) folder.
## License
MIT License, as found in the [LICENSE](/LICENSE) file.