Skip to content

Android Realm database driver for Facebook Flipper

License

Notifications You must be signed in to change notification settings

kamgurgul/Flipper-Realm

Repository files navigation

Download

Android Realm driver for Flipper.

Because of breaking changes between Realm versions driver is split into two versions:

  • 2.+ for Realm 7.+ and Realm 10.+ (from 2.1.0 available on mavenCentral)
  • 1.+ for Realm 5.+ and Realm 6.+ (legacy version still available on jcenter)

Download

  • Configure Flipper
  • Top level gradle:
allprojects {
    repositories {
        ...
        mavenCentral()
    }
}
  • Dependency:
implementation "com.kgurgul.flipper:flipper-realm-android:2.3.0"
  • Instantiate and add plugin to the FlipperClient. All your RealmConfigurations should be passed to RealmDatabaseProvider:
client.addPlugin(
    DatabasesFlipperPlugin(
        RealmDatabaseDriver(
            this,
            object : RealmDatabaseProvider {
                override fun getRealmConfigurations(): List<RealmConfiguration> {
                    return listOf(yourRealmConfiguration)
            }
        })
    )
)

Usage

Open Flipper app and enable Database plugin

Features

  • Displaying data from Realm database
  • Sort data by columns, for the types RealmFieldType.BOOLEAN, RealmFieldType.INTEGER, RealmFieldType.FLOAT, RealmFieldType.DOUBLE, RealmFieldType.STRING, RealmFieldType.DATE.
  • Displaying database structure

Currently it is not possible to modify database from Flipper.

License

Copyright 2019 KG Soft

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Android Realm database driver for Facebook Flipper

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages