Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Link184 committed Sep 17, 2017
1 parent 502569d commit 6af5c72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Gradle:

```gradle
repositories {
jcenter()
jcenter()
}
dependencies {
Expand Down Expand Up @@ -58,10 +58,10 @@ Simple use cases with Respiration's will look something like this:
// Init a repository:
FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();
GeneralRepository samplePrivateRepository = new GeneralRepository.Builder<>(SamplePrivateModel.class,
SAMPLE_PRIVATE_CHILD, currentUser != null ? currentUser.getUid() : null)
.setAccessPrivate(true) // Data are available only for authenticated users.
.setPersistence(true) // Set firebase db to be available offline
.build();
SAMPLE_PRIVATE_CHILD, currentUser != null ? currentUser.getUid() : null)
.setAccessPrivate(true) // Data are available only for authenticated users.
.setPersistence(true) // Set firebase db to be available offline
.build();

// Attach a subscriber to handle all data changes from firebase. SubscriberFirebase is a rxJava
// DisposableObserver so you can dispose or reatach it anytime.
Expand Down

0 comments on commit 6af5c72

Please sign in to comment.