1.0.2 • Published 4 years ago

flipper-plugin-mmkv-viewer v1.0.2

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

Flipper MMKV Viewer Plugin

npm.io npm version

English | 简体中文

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.

npm.io

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
  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

npm.io

Android

  1. 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'
}
  1. Add JitPack in your root build.gradle at the end of repositories:
allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
}
  1. 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'
}
  1. 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.

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago