realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Stetho/chrome database viewer

Open danielgomezrico opened this issue 10 years ago • 10 comments

I am not able to see the database though chrome with https://github.com/facebook/stetho. With works for sql ones, will be cool to have it here.

danielgomezrico avatar Jan 13 '16 17:01 danielgomezrico

Have you tried https://github.com/uPhyca/stetho-realm by @zaki50 ?

cmelchior avatar Jan 13 '16 18:01 cmelchior

@danielgomezrico Be sure that you are using the com.uphyca:stetho_realm:0.8.0 version. There was an issue with the 0.7.2 stetho and realm 0.8.6. The inspector was crashing because the api has changed and the code related to the reflaction was wrong...

https://github.com/uPhyca/stetho-realm/issues/9

kokeroulis avatar Jan 14 '16 21:01 kokeroulis

Yeah but it is not working, tried 0.8.0 and stetho 1.2.0 and realm 0.87.2

danielgomezrico avatar Jan 15 '16 16:01 danielgomezrico

stetho-realm 0.8.0 and stetho 1.2.0 and Realm Java 0.87.2 is working on my phone.

As I commented https://github.com/uPhyca/stetho-realm/issues/8#issuecomment-172022163 , can you try https://github.com/zaki50/realm_file_viewer_by_stetho ?

zaki50 avatar Jan 15 '16 17:01 zaki50

Hi @danielgomezrico

not yet working? Can you share the code with us? Please send the project to [email protected] if possible.

zaki50 avatar Jan 19 '16 07:01 zaki50

Hello.

This is not working for me as well.

I don't know if this have something to do with realm config. I'm setting my own config for realm and setting this as default.

I have a database called "[filename].realm" and configuring Stetho like documentacion said:

Stetho.initialize( Stetho.newInitializerBuilder(this) .enableDumpapp(Stetho.defaultDumperPluginsProvider(this)) .enableWebKitInspector(RealmInspectorModulesProvider.builder(this) .withFolder(getCacheDir()) .withMetaTables() .withDescendingOrder() .build()) .build());

     OkHttpClient client = new OkHttpClient();
     client.networkInterceptors().add(new StethoInterceptor());

If someone has any news regarding this please share.

andreinass avatar Jan 20 '16 14:01 andreinass

@andreinass can you share the project with us?

zaki50 avatar Jan 21 '16 06:01 zaki50

Closing due to no response

cmelchior avatar Feb 03 '16 12:02 cmelchior

Didn't work with stetho 1.4.1, stetho_realm:2.0.0, realm 2.2.0 Shows empty tables and same tables in all databases https://gyazo.com/3cdec1e76ab56a9f1d91c903b0883c44

morder avatar Nov 17 '16 07:11 morder

Paging @zaki50 although you could report this issue on Stetho-Realm instead

Zhuinden avatar Nov 17 '16 07:11 Zhuinden