Skip to content

renyuzhuo/rviewer

Repository files navigation

RViewer

A library to check the data saved by ObjectBox.

打开、查看 ObjectBox 存储的 data.mdb 文件。

Getting started

In your build.gradle:

 dependencies {
   debugCompile 'cn.renyuzhuo.rviewer:rviewer:1.0.2'
   releaseCompile 'cn.renyuzhuo.rviewer:rviewer-no-op:1.0.2'
 }

In your Application class:

public class App extends Application {

    private BoxStore boxStore;
    private static App app;

    @Override
    public void onCreate() {
        super.onCreate();
        boxStore = MyObjectBox.builder().androidContext(this).build();
        app = this;

        ArrayList<Class> classes = new ArrayList<>();
        classes.add(Note.class); // Your Entitys
        ObjectViewBoxManager.getInstance().init(boxStore, classes);
    }
}

Notice: You Should all Add toString() like:

    @Override
    public String toString() {
        return "Note{" +
                "id=" + id +
                ", text='" + text + '\'' +
                ", date=" + date +
                '}';
    }

All the things is done.

Thanks

ObjectBox-viewer

License

MIT

About

ObjectBox Data Viewer. Easy to open、look and Check the data.mdb file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages