Negotiable Paleobotanist Missions
Miss any of our Open RFC calls?Watch the recordings here! »

flipper-plugin-mmkv-viewer

1.0.2 • Public • Published

Flipper MMKV Viewer Plugin

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.

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

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.

Install

npm i flipper-plugin-mmkv-viewer

DownloadsWeekly Downloads

16

Version

1.0.2

License

MIT

Unpacked Size

1.42 MB

Total Files

6

Last publish

Collaborators

  • avatar