This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.jakewharton.rxrelay2.BehaviorRelay; | |
import com.jakewharton.rxrelay2.Relay; | |
import io.reactivex.Observable; | |
import java.util.concurrent.TimeUnit; | |
public class ColdReactiveDataExpiration { | |
// Problems to solve: | |
// 1- UI components should be notified when data is updated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import android.support.annotation.* | |
import android.support.v4.content.ContextCompat | |
import interface_adapters.ResourceProvider | |
import javax.inject.Inject | |
import javax.inject.Named | |
import javax.inject.Singleton | |
@Singleton | |
class AndroidResourceProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.util.Log | |
fun emptyMPStateMachineLogger(tag: String, message: String) { | |
// NoOp | |
} | |
fun defaultMPStateMachineLogger(tag: String, message: String) { | |
Log.d(tag, message) | |
} |
OlderNewer