From 6af5c72bb0d07a587116c8348c0e12a8bd44e224 Mon Sep 17 00:00:00 2001 From: link184 Date: Sun, 17 Sep 2017 10:59:43 +0300 Subject: [PATCH] Updated readme --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 6c3806b..018495e 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ Gradle: ```gradle repositories { - jcenter() + jcenter() } dependencies { @@ -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.