-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Goddchen/master
0.1 release
- Loading branch information
Showing
28 changed files
with
350 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# RxFireDroid | ||
Rx wrapper for the Firebase Android library | ||
Rx wrapper for the Firebase Android library. | ||
|
||
This is the first one that works with the RxJava 2! | ||
|
||
[![Build Status](https://travis-ci.org/Goddchen/RxFireDroid.svg?branch=master)](https://travis-ci.org/Goddchen/RxFireDroid) | ||
|
||
## Usage | ||
dependencies { | ||
compile 'de.goddchen.android:rxfiredroid:0.1' | ||
} | ||
|
||
## Samples | ||
### Database | ||
#### Single Read | ||
RxFireDroidDatabase.getValues("users") | ||
.subscribe(dataSnapshot -> { /* do something... */}); | ||
#### Observe | ||
RxFireDroidDatabase.observeValues("users") | ||
.subscribe(dataSnapshot -> { /* do something... */}); | ||
#### Delete | ||
RxFireDroidDatabase.deleteValues("user/123") | ||
.subscribe(); | ||
#### Set | ||
RxFireDroidDatabase.setValue("user/123/name", "Goddchen") | ||
.subscribe(); | ||
### Auth | ||
#### Login (email, password) | ||
RxFireDroidAuth.signIn("[email protected]", "password123") | ||
.subscribe( | ||
firebaseUser -> { /* do something... */}, | ||
throwable -> { /* handle error */}); | ||
## License | ||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
include ':app' | ||
include ':app', ':tests' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.0" | ||
|
||
defaultConfig { | ||
applicationId "de.goddchen.android.rxfiredroid.tests" | ||
minSdkVersion 9 | ||
targetSdkVersion 25 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
compile 'com.android.support:appcompat-v7:25.0.1' | ||
testCompile 'junit:junit:4.12' | ||
androidTestCompile 'com.android.support:support-annotations:25.0.1' | ||
androidTestCompile 'com.android.support.test:runner:0.5' | ||
androidTestCompile 'com.android.support.test:rules:0.5' | ||
compile project(':app') | ||
} | ||
|
||
apply plugin: 'com.google.gms.google-services' |
Oops, something went wrong.