Skip to content

Commit

Permalink
Release version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Mielczarek committed Feb 10, 2017
1 parent a16c901 commit b3b174d
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 6 deletions.
72 changes: 67 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down Expand Up @@ -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'
}
```
Expand Down Expand Up @@ -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<T>:
```java
CacheableFlowable<T> cachable = observableCache.cacheFlowable(KEY);
```
- caching Maybe<T>:
```java
CacheableMaybe<T> cachable = observableCache.cacheMaybe(KEY);
```
- retrieve Flowable<T>:
```java
FlowableFromCache<T> fromCache = observableCache.<T>getFlowable(KEY);
```
- retrieve Maybe<T>:
```java
MaybeFromCache<T> fromCache = observableCache.<T>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
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ext {
versionMajor = 1
versionMinor = 0
versionMinor = 1
versionFix = 0

minSdkVersionVersion = 16
Expand Down

0 comments on commit b3b174d

Please sign in to comment.