Android Database Browser for realm-java
This library project provides a convenient way for Android developers to see the contents of their Realm database files on the device.
It's a fork of dmytrodanylyk/realm-browser which was originally created by Danylyk Dmytro but sadly discontinued.
| | --- | --- | --- | |
Releases: - Develop branch (Snapshots):
The project is available via JitPack.io.
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
}dependencies {
debugCompile 'com.github.jonasrottmann.realm-browser:realm-browser:0.0.14'
testCompile 'com.github.jonasrottmann.realm-browser:realm-browser-no-op:0.0.14'
releaseCompile 'com.github.jonasrottmann.realm-browser:realm-browser-no-op:0.0.14'
} The no-op version of Realm Browser has empty functions which do nothing. It is not necessary to include this, but you may if you do not want to access Realm Browser in release mode. If you want to use a build of the newest development use compile "com.github.jonasrottmann.realm-browser:realm-browser:develop-SNAPSHOT" instead.
depedencies {
debugCompile ('com.github.jonasrottmann.realm-browser:realm-browser:0.0.14') {
exclude group: 'com.android.support';
}
}# Realm Browser
-keep class de.jonasrottmann.realmbrowser.* { *; }
-keep class android.support.v7.widget.SearchView { *; }
-keep class android.support.v7.view.** { *; }If you want to see all your database files:
RealmBrowser.startRealmFilesActivity(context);If you want to see all the tables in a database call:
RealmBrowser.startRealmModelsActivity(context, realmConfiguration);To display a notification from which the Realm Browser can be started:
RealmBrowser.showRealmFilesNotification(context);RealmBrowser.showRealmModelsNotification(context, realmConfiguration);There are also App Shortcuts available for devices running Android 7.1 or newer:
RealmBrowser.addFilesShortcut(context);RealmBrowser.addModelsShortcut(context, realmConfiguration)For a full working example check out the sample app.
What's on the roadmap...
If you're looking for a Realm browser for your iOS Swift projects check out bearjaw/RBSRealmBrowser
…No open issues yet, or sync has not completed.