<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          Stetho Realm用于 Stetho 的 Realm 模塊

          聯(lián)合創(chuàng)作 · 2023-09-28 08:34

          一個用于Stetho的Realm模塊:可以通過Stetho,在Chrome瀏覽器上查看Realm數(shù)據(jù)庫。

          使用方法:

          1. 在您的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'
          }

          2. 在您的Application文件中添加:

          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());
              }
          }

           現(xiàn)在,您就可以通過Stetho,在Chrome中查看Realm數(shù)據(jù)庫咯!

          瀏覽 19
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  俺去俺来也www色老 | 国产成人精品麻豆 | 黄色欧美网页 | 日B视频在线观看 | 人人看人人看 |