uPhyca / stetho-realm

Realm module for Stetho
Other
738 stars 114 forks source link

Realm database is empty and disconnects when i click the more arrow in developer tools #69

Closed montecillodavidacn closed 6 years ago

montecillodavidacn commented 6 years ago

Realm database is empty and disconnects when i click the more arrow in developer tools Im using


repositories {
    maven {
        url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
    }
}

dependencies {
    debugCompile 'com.facebook.stetho:stetho:1.5.0'
    debugCompile 'com.uphyca:stetho_realm:2.1.0'
}
       if (BuildConfig.DEBUG){

            RealmInspectorModulesProvider inspectorModulesProvider = RealmInspectorModulesProvider.builder(this)
                    .withFolder(getCacheDir())
                    .withEncryptionKey("encrypted.realm", getSecretKey())
                    .withMetaTables()
                    .withDescendingOrder()
                    .withLimit(1000)
                    .databaseNamePattern(Pattern.compile(".+\\.realm"))
                    .build();
            Stetho.initialize(
                    Stetho.newInitializerBuilder(this)
                            .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                            .enableWebKitInspector(inspectorModulesProvider)
                            .build());
        }

I have 1 encryption key used in all 3 of my realm database, How do I access them correctly?

montecillodavidacn commented 6 years ago

Closing as this is already fix.