mirror of
https://github.com/android10/Android-CleanArchitecture.git
synced 2025-08-26 15:21:51 +08:00
Update frodo to version 0.8.2.
This commit is contained in:
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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()) {
|
||||||
|
Reference in New Issue
Block a user