Coder Social home page Coder Social logo

rxfirebase's Introduction

RxFirebase

Android Arsenal CircleCI codecov

RxJava binding APIs for Firebase Android SDK.

Usage

RxFirebaseAuth.changes(FirebaseAuth.getInstance()).subscribe();
FirebaseAuth.getInstance().changes().subscribe()
RxFirebaseRemoteConfig.fetches(firebaseRemoteConfig).subscribe();
firebaseRemoteConfig.fetches().subscribe();
RxFirebaseAuth.getCurrentUser(FirebaseAuth.getInstance()).subscribe();
RxFirebaseAuth.getCurrentUser(FirebaseAuth.getInstance()).subscribe();
RxFirebaseAuth.signInAnonymous(FirebaseAuth.getInstance()).subscribe();
RxFirebaseUser.updateProfile(user, new UserProfileChangeRequest.Builder()
        .setDisplayName("Andrew Chen")
        .setPhotoUri(Uri.parse("https://github.com/yongjhih/rxfirebase/art/rxfirebase.png"))
        .build())
        .subscribe();
RxFirebaseDatabase.dataChanges(ref).subscribe();
RxFirebaseDatabase.data(ref).subscribe();

See official documentation for the details.

Installation

compile 'com.github.yongjhih.rxfirebase:rxfirebase2-config:-SNAPSHOT'
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-config-kotlin:-SNAPSHOT' // for kotlin
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-auth:-SNAPSHOT'
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-auth-kotlin:-SNAPSHOT' // for kotlin
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-database:-SNAPSHOT'
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-database-kotlin:-SNAPSHOT' // for kotlin
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-storage:-SNAPSHOT'
compile 'com.github.yongjhih.rxfirebase:rxfirebase2-storage-kotlin:-SNAPSHOT' // for kotlin

// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-messaging:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-messaging-kotlin:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-crash:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-crash-kotlin:10.2.1'

// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-invites:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-invites-kotlin:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-ads:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-ads-kotlin:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-appindexing:10.2.1'
// TODO: compile 'com.github.yongjhih.rxfirebase:rxfirebase2-appindexing-kotlin:10.2.1'

Comparison

Multiple Libs RxJava2 Kotlin Unit Test RxTasks jitpack auth database storage config crash messaging
yongjhih/rxfirebase x x x x x x x x x x * *
nmoskalenko/RxFirebase - - - x - - x x x - - -
kunny/RxFirebase x x x x - - x x - - - -
ezhome/Android-RxFirebase - - - x - - x x - - - -
b3er/RxFirebase2 x x x x ! - x x x - - -
ashdavies/rx-firebase - x - x x - x x - - - -
FrangSierra/Rx2Firebase - x - x - x x x x - - -

See Also

License

Copyright 2017 Andrew Chen
Copyright 2016-2017 Taeho Kim <[email protected]>

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.

rxfirebase's People

Contributors

b3er avatar kunny avatar yongjhih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rxfirebase's Issues

Documentation

Is there any documentation for your library's use? Thank you

Firebase version

Hi,

There is any specific reason to keep the firebase version on 10.x and not to upgrade?

Transaction abort should throw an exception

Hello!

First of all thank you for maintaining this wonderful library! The business logic sometimes aborts the database transaction, and it would be cool if the library could handle it. The current version simply ignores the committed argument. (https://github.com/yongjhih/rxfirebase/blob/master/rxfirebase2-database/src/main/java/rxfirebase2/database/RxValue.java#L177 )

My suggestion is to throw an exception (e.g. TransactionAbortedException) if the committed flag is false. (I'd make a PR about it, but having hard time configuring the cloned project)

Regards,
Géza

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.