![Release](https://camo.githubusercontent.com/5c172f4cd4ef7f8f10573e489de3ff69ab5d6054b1744439a64e785eef8be7f2/68747470733a2f2f6a69747061636b2e696f2f762f78697a7a68752f73746574686f2d7265616c6d2e737667)
A Realm module for Stetho.
- Add the following to your
build.gradle
:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.facebook.stetho:stetho:1.5.0'
compile 'com.github.xizzhu:stetho-realm:0.1.3'
}
public final class App extends Application {
@Override
public void onCreate() {
super.onCreate();
Realm.init(this);
final StethoRealmInspectorModulesProvider inspectorModulesProvider =
new StethoRealmInspectorModulesProvider.Builder(this)
.dirs(new File(...))
.namePattern(".+\\.realm")
.encryptionKey("encrypted.realm", new byte[] {...})
.build();
Stetho.initialize(Stetho.newInitializerBuilder(this)
.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
.enableWebKitInspector(inspectorModulesProvider)
.build());
}
}
Copyright (C) 2017 Xizhi Zhu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.