Skip to content

Commit

Permalink
Merge pull request #30 from Goddchen/v0.2-preparation
Browse files Browse the repository at this point in the history
V0.2 preparation
  • Loading branch information
Goddchen authored Dec 11, 2016
2 parents c62b018 + 8d7c64f commit 32601a8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is the first one that works with the RxJava 2!

## Usage
dependencies {
compile 'de.goddchen.android:rxfiredroid:0.1'
compile 'de.goddchen.android:rxfiredroid:0.2'
}

## Samples
Expand All @@ -30,6 +30,26 @@ This is the first one that works with the RxJava 2!
.subscribe(
firebaseUser -> { /* do something... */},
throwable -> { /* handle error */});
### Remote Config
#### Read
RxFireDroidRemoteConfig.getBoolean("awesome-feature")
.subscribe(
enabled -> { /* enable awesome feature */ },
throwable -> { /* Log error */ });
### Storage
#### Read
RxFireDroidStorage.getFile(ref, outFile)
.doOnError(throwable -> { /* Log error */ })
.subscribe();

RxFireDroidStorage.getDownloadUrl(ref)
.subscribe(
uri -> { /* Handle download url */ },
throwable -> { /* Log error */});
#### Write
RxFireDroidStorage.putBytes(ref, bytes)
.doOnError(throwable -> { /* Log error */ })
.subscribe();

## License
MIT
8 changes: 4 additions & 4 deletions library/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ publishing {
artifact androidSourcesJar
artifactId = 'rxfiredroid'
groupId = 'de.goddchen.android'
version = '0.1'
version = '0.2'
pom.withXml {
def dependenciesNode = asNode().appendNode('dependencies')
configurations.compile.allDependencies.each { dependency ->
Expand Down Expand Up @@ -109,12 +109,12 @@ bintray {
githubRepo = 'Goddchen/RxFireDroid'

version {
name = '0.1'
mavenCentralSync {
name = '0.2'
/*mavenCentralSync {
sync = true
user = System.getenv("SONATYPE_USER")
password = System.getenv("SONATYPE_PASS")
}
}*/
}
}
}

0 comments on commit 32601a8

Please sign in to comment.