mirror of
https://github.com/android10/Android-CleanArchitecture.git
synced 2025-08-26 07:17:04 +08:00
Update frodo to version 0.8.2.
This commit is contained in:
@ -9,7 +9,7 @@ buildscript {
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:1.3.1'
|
||||
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"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,8 @@ import java.net.MalformedURLException;
|
||||
import java.util.List;
|
||||
import rx.Observable;
|
||||
|
||||
import static com.fernandocejas.frodo.annotation.RxLogObservable.Scope.SCHEDULERS;
|
||||
|
||||
/**
|
||||
* {@link RestApi} implementation for retrieving data from the network.
|
||||
*/
|
||||
@ -48,7 +50,7 @@ public class RestApiImpl implements RestApi {
|
||||
this.userEntityJsonMapper = userEntityJsonMapper;
|
||||
}
|
||||
|
||||
@RxLogObservable
|
||||
@RxLogObservable(SCHEDULERS)
|
||||
@Override public Observable<List<UserEntity>> userEntityList() {
|
||||
return Observable.create(subscriber -> {
|
||||
if (isThereInternetConnection()) {
|
||||
@ -70,7 +72,7 @@ public class RestApiImpl implements RestApi {
|
||||
});
|
||||
}
|
||||
|
||||
@RxLogObservable
|
||||
@RxLogObservable(SCHEDULERS)
|
||||
@Override public Observable<UserEntity> userEntityById(final int userId) {
|
||||
return Observable.create(subscriber -> {
|
||||
if (isThereInternetConnection()) {
|
||||
|
Reference in New Issue
Block a user