From b3b174d5a2a3306a3b8fd7ad29e8b728e5b8e4a8 Mon Sep 17 00:00:00 2001 From: Aleksander Mielczarek Date: Fri, 10 Feb 2017 11:30:35 +0100 Subject: [PATCH] Release version 1.1.0 --- README.md | 72 +++++++++++++++++++++++++++++++++++++++++---- dependencies.gradle | 2 +- 2 files changed, 68 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c8667b8..80f2b04 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Add the dependency ```groovy dependencies { - compile 'com.github.AleksanderMielczarek.ObservableCache:observable-cache:1.0.0' + compile 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-1:1.1.0' } ``` @@ -137,8 +137,8 @@ Add to the dependencies ```groovy dependencies { - compile 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-service:1.0.0' - apt 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-service-processor:1.0.0' + compile 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-1-service:1.1.0' + apt 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-service-1-processor:1.1.0' } ``` @@ -221,11 +221,73 @@ must be the same as method for caching values + word 'remove': ## RxJava 2.x -Currently library doesn't support RxJava 2.x. +RxJava 2 usage is very similar to RxJava 1. + +New types: + +- caching Flowable: +```java +CacheableFlowable cachable = observableCache.cacheFlowable(KEY); +``` +- caching Maybe: +```java +CacheableMaybe cachable = observableCache.cacheMaybe(KEY); +``` +- retrieve Flowable: +```java +FlowableFromCache fromCache = observableCache.getFlowable(KEY); +``` +- retrieve Maybe: +```java +MaybeFromCache fromCache = observableCache.getMaybe(KEY); +``` + +### Observable Cache + +#### Usage + +Add it in your root build.gradle at the end of repositories: + +```groovy +allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } +} +``` + +Add the dependency + +```groovy +dependencies { + compile 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-2:1.1.0' +} +``` + +### Observable Cache Service + +#### Usage + +Add it in your root build.gradle at the end of repositories: + +Add to the dependencies + +```groovy +dependencies { + compile 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-2-service:1.1.0' + apt 'com.github.AleksanderMielczarek.ObservableCache:observable-cache-service-2-processor:1.1.0' +} +``` ## Changelog -### 1.0.0 (2016-11-06) +### 1.1.0 (2017-02-10) + +- add RxJava 2.x support +- rename RxJava 1.x modules + +### 1.1.0 (2016-11-06) - add generator for caching interface diff --git a/dependencies.gradle b/dependencies.gradle index f13461d..7cd7fef 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,6 +1,6 @@ ext { versionMajor = 1 - versionMinor = 0 + versionMinor = 1 versionFix = 0 minSdkVersionVersion = 16