Flipper: Android Add support for Realm

Created on 29 Sep 2018  路  14Comments  路  Source: facebook/flipper

If possible, since Realm is widely used, add a plugin that we can check our databases.

Android Stale enhancement help wanted

Most helpful comment

For anyone curious, I have basic realm data displaying in a plugin:
screen shot 2019-02-21 at 12 36 50 am

Given a realm class declared in Kotlin like this:
screen shot 2019-02-21 at 12 37 21 am

And test/sample data setup like this:
screen shot 2019-02-21 at 12 42 29 am

I'm actively working on this at the moment. It's obviously _far_, far from complete and nowhere near ready, but I'll post a link to a repo/PR/etc here once the plugin is stable enough for an alpha release - subscribe to notifications on this issue if you're interested in following!

All 14 comments

That's a feature that won't come out of our team, but it would definitely be great to have support for it. Happy to review any pull requests for it. :)

@mgoyanes I'm working on that exact thing as we speak :)

@erawhctim great ;)

For anyone curious, I have basic realm data displaying in a plugin:
screen shot 2019-02-21 at 12 36 50 am

Given a realm class declared in Kotlin like this:
screen shot 2019-02-21 at 12 37 21 am

And test/sample data setup like this:
screen shot 2019-02-21 at 12 42 29 am

I'm actively working on this at the moment. It's obviously _far_, far from complete and nowhere near ready, but I'll post a link to a repo/PR/etc here once the plugin is stable enough for an alpha release - subscribe to notifications on this issue if you're interested in following!

That's amazing! Looking forward to seeing more about this, @erawhctim!

Great @erawhctim. If you need testers count me in :)

@erawhctim are you going to add support to Room too?

@felislynx-silae Yep - the current plan is to make this plugin as database-agnostic as possible and support multiple different implementations. Realm on Android/iOS and Room at first, with SQLDelight and Core Data as later options. (I _think_ those are possible, but just haven't had time to fully explore/validate them yet since Realm was first-priority)

@erawhctim
Hi Mitch!
How is it going with SQLite / Room? I was thinking about doing plugin, maybe you need help?

A generic db plugin has been merged ( https://github.com/facebook/flipper/issues/33 ). Since it's generic, it looks like it could be extended to support Realm.

Hi @erawhctim,
Do you have any update on this ? Something we can explore, maybe an implementation of a custom DatabasesFlipperPlugin for Realm ?
Thanks :)

If anyone need it I extracted driver which I'm using for Realm: https://github.com/kamgurgul/Flipper-Realm
Maybe in the feature I will add iOS support and merge it here.

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings