Update frodo to version 0.8.2.

This commit is contained in:
Fernando Cejas
2015-12-06 20:08:42 +01:00
parent 5e8dbbae00
commit a5bf4492be
2 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@ buildscript {
dependencies { dependencies {
classpath 'com.android.tools.build:gradle:1.3.1' classpath 'com.android.tools.build:gradle:1.3.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath "com.fernandocejas.frodo:frodo-plugin:0.8.1" classpath "com.fernandocejas.frodo:frodo-plugin:0.8.2"
} }
} }

View File

@ -26,6 +26,8 @@ import java.net.MalformedURLException;
import java.util.List; import java.util.List;
import rx.Observable; import rx.Observable;
import static com.fernandocejas.frodo.annotation.RxLogObservable.Scope.SCHEDULERS;
/** /**
* {@link RestApi} implementation for retrieving data from the network. * {@link RestApi} implementation for retrieving data from the network.
*/ */
@ -48,7 +50,7 @@ public class RestApiImpl implements RestApi {
this.userEntityJsonMapper = userEntityJsonMapper; this.userEntityJsonMapper = userEntityJsonMapper;
} }
@RxLogObservable @RxLogObservable(SCHEDULERS)
@Override public Observable<List<UserEntity>> userEntityList() { @Override public Observable<List<UserEntity>> userEntityList() {
return Observable.create(subscriber -> { return Observable.create(subscriber -> {
if (isThereInternetConnection()) { if (isThereInternetConnection()) {
@ -70,7 +72,7 @@ public class RestApiImpl implements RestApi {
}); });
} }
@RxLogObservable @RxLogObservable(SCHEDULERS)
@Override public Observable<UserEntity> userEntityById(final int userId) { @Override public Observable<UserEntity> userEntityById(final int userId) {
return Observable.create(subscriber -> { return Observable.create(subscriber -> {
if (isThereInternetConnection()) { if (isThereInternetConnection()) {