RxDbflow


Source link: https://github.com/roadhouse-dev/RxDbflow

RxDBFlow

RxJava bindings for DBFlow models, and query language

Download

Add the JitPack repository to your root build file

buildscript {

  repositories {

jcenter()
  
}

  dependencies {

classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
  
}
 
}
  allprojects {

  repositories {

...

maven {
 url "https://jitpack.io" 
}

  
}
 
}

For RxJava1 add the dependencies:

dependencies {

  apt 'com.github.Raizlabs.DBFlow:dbflow-processor:4.0.0-beta7'
  compile 'com.github.Raizlabs.DBFlow:dbflow-core:4.0.0-beta7'
  compile 'com.github.Raizlabs.DBFlow:dbflow:4.0.0-beta7'
  compile 'com.github.roadhouse-dev.RxDbflow:rxdbflow-rx1:<Version>' 
}

or for RxJava2 add the dependencies:

dependencies {

  apt 'com.github.Raizlabs.DBFlow:dbflow-processor:4.0.0-beta7'
  compile 'com.github.Raizlabs.DBFlow:dbflow-core:4.0.0-beta7'
  compile 'com.github.Raizlabs.DBFlow:dbflow:4.0.0-beta7'
  compile 'com.github.roadhouse-dev.RxDbflow:rxdbflow-rx2:<Version>' 
}

At the moment only DBFlow version 4.0.0-beta7 is supported

Build

$ git clone https://github.com/roadhouse-dev/RxDbflow.git $ ./gradlew build

DBFlow documentation

For help with DBFlow please take a look at DBFlow GitHub

Scheduler

RxDBFlow now comes with it's own scheduler (DBFlowSchedulers.background()), this is a single threaded scheduler that will ensure all database operations happen from the same background thread. Using a multi-threaded scheduler like Schedulers.io() can cause deadlocks.

Sample usage

There are slight differences between rx1 and rx2

Rx1 Sample usage

View here

Rx2 Sample usage

View here

Bugs and Feedback

For RxDBFlow bugs, questions and discussions please use the GitHub Issues.

For DBFlow specific bugs, questions and discussions please use the GitHub Issues.

Pull Requests

All pull requests are welcome, however to make the whole process smoother please use the following guides

  • All pull requests should be against the develop branch
  • Code formatting should match the default Android Studio format
  • Limit code changes to the scope of what you're implementing
  • Provide standard JavaDoc for any public accessible members and classes

Resources

StoriesProgressView is showing horizontal progress like instagram stories.

As the name says, SmartRefreshLayout is a "smart" refresh layout,Because of its "smart", it does not just support all the View as other refresh layouts said, but also support multi-layered nested view structures.

FileListerDialog helps you to list and pick file/directory for Android.

Custom views for Android's inset areas.

This is contains below components:

  • StatusBarInsetFrameLayout
  • BottomNavigationBarInsetFrameLayout

A small Shared Preference library for Android.

Multi photo picker is totally custom library. User can add multiple picture with same photo multiple time.

Multi photo picker has best sorting option for sort by name, date and size.

Multi photo picker display album list and photos gallery it is easy to add photos in list.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes