如何使用 Stetho 查看 android 中的领域数据库表?
How to view realm database tables in android using Stetho?
如何查看使用realm创建的数据库表,用于测试purpose.Is有什么工具可以查看表吗?知道答案的请提前help.Thanks
有个plugin stetho-realm and installation of it documented in .
这来自第三方,不是来自 Realm,但我们非常鼓励。我们热爱我们的社区。
为将来面临同样问题的人更新:
uPhyca 原创的 stetho-realm 不支持最新版本的 realm(当你在 chrome 打开时,应用程序崩溃)
所以,你应该安装一个可以工作的 fork,参见:
https://github.com/uPhyca/stetho-realm/issues/62#issuecomment-346927558
感谢@WickedDev
这在 2019 年底对我有用,几乎是最新版本:
在您的 build.gradle 文件中
repositories {
maven() {
url 'https://github.com/WickeDev/stetho-realm/raw/master/maven-repo'
}
}
dependencies {
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.uphyca:stetho_realm:2.2.2'
}
在您的应用程序(java)文件中:
Realm.init(this);
//--- for development setting only
Stetho.initialize(
Stetho.newInitializerBuilder(this)
.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
.enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build())
.build());
如何查看使用realm创建的数据库表,用于测试purpose.Is有什么工具可以查看表吗?知道答案的请提前help.Thanks
有个plugin stetho-realm and installation of it documented in
这来自第三方,不是来自 Realm,但我们非常鼓励。我们热爱我们的社区。
为将来面临同样问题的人更新:
uPhyca 原创的 stetho-realm 不支持最新版本的 realm(当你在 chrome 打开时,应用程序崩溃)
所以,你应该安装一个可以工作的 fork,参见:
https://github.com/uPhyca/stetho-realm/issues/62#issuecomment-346927558
感谢@WickedDev
这在 2019 年底对我有用,几乎是最新版本:
在您的 build.gradle 文件中
repositories {
maven() {
url 'https://github.com/WickeDev/stetho-realm/raw/master/maven-repo'
}
}
dependencies {
implementation 'com.facebook.stetho:stetho:1.5.1'
implementation 'com.uphyca:stetho_realm:2.2.2'
}
在您的应用程序(java)文件中:
Realm.init(this);
//--- for development setting only
Stetho.initialize(
Stetho.newInitializerBuilder(this)
.enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
.enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build())
.build());