diff --git a/example/src/main/java/com/sumera/koreactor/MviAppCompatActivityDelegate.kt b/example/src/main/java/com/sumera/koreactor/MviAppCompatActivityDelegate.kt index 410e793..6beeeb6 100644 --- a/example/src/main/java/com/sumera/koreactor/MviAppCompatActivityDelegate.kt +++ b/example/src/main/java/com/sumera/koreactor/MviAppCompatActivityDelegate.kt @@ -5,11 +5,11 @@ import android.arch.lifecycle.ViewModelProvider import android.arch.lifecycle.ViewModelProviders import android.os.Bundle import android.support.v7.app.AppCompatActivity -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.view.MviBindableView -import com.sumera.koreactor.view.delegate.MviReactorDelegate +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.view.MviBindableView +import com.sumera.koreactorlib.view.delegate.MviReactorDelegate import io.reactivex.Observable abstract class MviAppCompatActivityDelegate : AppCompatActivity(), MviBindableView { diff --git a/example/src/main/java/com/sumera/koreactor/MviFragmentDelegate.kt b/example/src/main/java/com/sumera/koreactor/MviFragmentDelegate.kt index 9c83c81..df63e2e 100644 --- a/example/src/main/java/com/sumera/koreactor/MviFragmentDelegate.kt +++ b/example/src/main/java/com/sumera/koreactor/MviFragmentDelegate.kt @@ -6,11 +6,11 @@ import android.arch.lifecycle.ViewModelProviders import android.os.Bundle import android.support.v4.app.Fragment import android.view.View -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.view.MviBindableView -import com.sumera.koreactor.view.delegate.MviReactorDelegate +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.view.MviBindableView +import com.sumera.koreactorlib.view.delegate.MviReactorDelegate import io.reactivex.Observable abstract class MviFragmentDelegate : Fragment(), MviBindableView { diff --git a/example/src/main/java/com/sumera/koreactor/ui/base/BaseActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/base/BaseActivity.kt index 355c917..af4d676 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/base/BaseActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/base/BaseActivity.kt @@ -3,7 +3,7 @@ package com.sumera.koreactor.ui.base import android.os.Bundle import android.support.v4.app.Fragment import com.sumera.koreactor.MviAppCompatActivityDelegate -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState import dagger.android.AndroidInjection import dagger.android.AndroidInjector import dagger.android.DispatchingAndroidInjector diff --git a/example/src/main/java/com/sumera/koreactor/ui/base/BaseFragment.kt b/example/src/main/java/com/sumera/koreactor/ui/base/BaseFragment.kt index dc2e8be..05431ea 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/base/BaseFragment.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/base/BaseFragment.kt @@ -6,7 +6,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.sumera.koreactor.MviFragmentDelegate -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState import dagger.android.AndroidInjector import dagger.android.DispatchingAndroidInjector import dagger.android.support.AndroidSupportInjection diff --git a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/EmptyState.kt b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/EmptyState.kt index e382c99..a72ef24 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/EmptyState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/EmptyState.kt @@ -1,5 +1,5 @@ package com.sumera.koreactor.ui.base.stateless -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState object EmptyState: MviState \ No newline at end of file diff --git a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessActivity.kt index 94be517..db5ce9a 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessActivity.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.base.stateless -import com.sumera.koreactor.reactor.MviReactor +import com.sumera.koreactorlib.reactor.MviReactor import com.sumera.koreactor.ui.base.BaseActivity import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactor.kt index 96ffa2a..0dd588b 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactor.kt @@ -1,8 +1,8 @@ package com.sumera.koreactor.ui.base.stateless import com.sumera.koreactor.injection.PerActivity -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction import io.reactivex.Observable import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactorFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactorFactory.kt index 557d746..5e82e77 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactorFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/base/stateless/StatelessReactorFactory.kt @@ -1,7 +1,7 @@ package com.sumera.koreactor.ui.base.stateless import com.sumera.koreactor.injection.PerActivity -import com.sumera.koreactor.reactor.MviReactorFactory +import com.sumera.koreactorlib.reactor.MviReactorFactory import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterActivity.kt index b20811a..1b701d8 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterActivity.kt @@ -4,14 +4,14 @@ import android.os.Bundle import android.widget.Toast import com.jakewharton.rxbinding2.view.clicks import com.sumera.koreactor.R -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviEvent import com.sumera.koreactor.ui.base.BaseActivity import com.sumera.koreactor.ui.feature.counter.contract.CounterState import com.sumera.koreactor.ui.feature.counter.contract.DecrementAction import com.sumera.koreactor.ui.feature.counter.contract.IncrementAction import com.sumera.koreactor.ui.feature.counter.contract.ShowNumberIsDivisibleByFiveToast -import com.sumera.koreactor.util.extension.getChange +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.util.extension.getChange import io.reactivex.Observable import kotlinx.android.synthetic.main.activity_counter.* import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactor.kt index 97fda04..84cfcae 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactor.kt @@ -1,14 +1,14 @@ package com.sumera.koreactor.ui.feature.counter -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction import com.sumera.koreactor.ui.feature.counter.contract.CounterState import com.sumera.koreactor.ui.feature.counter.contract.DecrementAction import com.sumera.koreactor.ui.feature.counter.contract.DecrementReducer import com.sumera.koreactor.ui.feature.counter.contract.IncrementAction import com.sumera.koreactor.ui.feature.counter.contract.IncrementReducer import com.sumera.koreactor.ui.feature.counter.contract.ShowNumberIsDivisibleByFiveToast -import com.sumera.koreactor.util.extension.getChange +import com.sumera.koreactorlib.util.extension.getChange import com.sumera.koreactor.injection.PerActivity import io.reactivex.Observable import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactorFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactorFactory.kt index 19e7f55..aeb7104 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactorFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/CounterReactorFactory.kt @@ -1,7 +1,7 @@ package com.sumera.koreactor.ui.feature.counter -import com.sumera.koreactor.reactor.MviReactorFactory import com.sumera.koreactor.injection.PerActivity +import com.sumera.koreactorlib.reactor.MviReactorFactory import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterActions.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterActions.kt index 2dd3d06..683401e 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterActions.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterActions.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.counter.contract -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviAction sealed class CounterActions : MviAction diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterEvents.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterEvents.kt index 6cf0b4e..23c3ff8 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterEvents.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterEvents.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.counter.contract -import com.sumera.koreactor.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviEvent sealed class CounterEvents: MviEvent diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterState.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterState.kt index 607d016..7d0f8cb 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterState.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.counter.contract -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState data class CounterState( val counter: Int diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterStateReducers.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterStateReducers.kt index 20724ab..42d4f49 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterStateReducers.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/counter/contract/CounterStateReducers.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.counter.contract -import com.sumera.koreactor.reactor.data.MviStateReducer +import com.sumera.koreactorlib.reactor.data.MviStateReducer sealed class CounterStateReducers: MviStateReducer diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityActivity.kt index 94dc3c4..04f6faf 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityActivity.kt @@ -3,8 +3,6 @@ package com.sumera.koreactor.ui.feature.infinity import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import com.sumera.koreactor.R -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviEvent import com.sumera.koreactor.ui.base.BaseActivity import com.sumera.koreactor.ui.common.PlaceholderLayout import com.sumera.koreactor.ui.feature.infinity.adapter.InfinityAdapter @@ -13,12 +11,12 @@ import com.sumera.koreactor.ui.feature.infinity.contract.OnItemClickedAction import com.sumera.koreactor.ui.feature.infinity.contract.OnRetryInfinityLoadingAction import com.sumera.koreactor.ui.feature.infinity.contract.OnRetryInitialAction import com.sumera.koreactor.ui.feature.infinity.contract.OnScrolledToBottomAction -import com.sumera.koreactor.ui.feature.todo.InfinityReactor -import com.sumera.koreactor.ui.feature.todo.InfinityReactorFactory -import com.sumera.koreactor.ui.feature.todo.contract.InfinityState -import com.sumera.koreactor.util.data.asOptional -import com.sumera.koreactor.util.extension.getChange -import com.sumera.koreactor.util.extension.getTrue +import com.sumera.koreactor.ui.feature.infinity.contract.InfinityState +import com.sumera.koreactorlib.util.data.asOptional +import com.sumera.koreactorlib.util.extension.getChange +import com.sumera.koreactorlib.util.extension.getTrue +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviEvent import io.reactivex.Observable import kotlinx.android.synthetic.main.activity_infinity.* import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactor.kt index 784ddf7..a4908f5 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactor.kt @@ -1,15 +1,9 @@ -package com.sumera.koreactor.ui.feature.todo +package com.sumera.koreactor.ui.feature.infinity -import com.sumera.koreactor.behaviour.ObservableWorker -import com.sumera.koreactor.behaviour.implementation.InfinityLoadingBehaviour -import com.sumera.koreactor.behaviour.implementation.LoadingListBehaviour -import com.sumera.koreactor.behaviour.messages -import com.sumera.koreactor.behaviour.triggers import com.sumera.koreactor.data.ToDoItem -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.lifecycle.AttachState +import com.sumera.koreactor.injection.PerActivity import com.sumera.koreactor.ui.feature.infinity.contract.AddNewData +import com.sumera.koreactor.ui.feature.infinity.contract.InfinityState import com.sumera.koreactor.ui.feature.infinity.contract.NavigateToDetailEvent import com.sumera.koreactor.ui.feature.infinity.contract.OnItemClickedAction import com.sumera.koreactor.ui.feature.infinity.contract.OnRetryInfinityLoadingAction @@ -19,9 +13,15 @@ import com.sumera.koreactor.ui.feature.infinity.contract.ShowInfinityError import com.sumera.koreactor.ui.feature.infinity.contract.ShowInfinityLoading import com.sumera.koreactor.ui.feature.infinity.contract.ShowInitialError import com.sumera.koreactor.ui.feature.infinity.contract.ShowInitialLoading -import com.sumera.koreactor.ui.feature.todo.contract.InfinityState -import com.sumera.koreactor.util.extension.ofLifecycleType -import com.sumera.koreactor.injection.PerActivity +import com.sumera.koreactorlib.behaviour.ObservableWorker +import com.sumera.koreactorlib.behaviour.implementation.InfinityLoadingBehaviour +import com.sumera.koreactorlib.behaviour.implementation.LoadingListBehaviour +import com.sumera.koreactorlib.behaviour.messages +import com.sumera.koreactorlib.behaviour.triggers +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.lifecycle.AttachState +import com.sumera.koreactorlib.util.extension.ofLifecycleType import io.reactivex.Observable import io.reactivex.functions.BiFunction import java.util.* @@ -50,7 +50,7 @@ class InfinityReactor @Inject constructor( val itemClickedAction = actions.ofActionType() val startLoadingNextDataAction = bottomScrolledAction - .withLatestFrom(stateObservable, BiFunction { _: OnScrolledToBottomAction, state:InfinityState -> state }) + .withLatestFrom(stateObservable, BiFunction { _: OnScrolledToBottomAction, state: InfinityState -> state }) .filter { !it.isInfinityLoading && !it.isInfinityError } LoadingListBehaviour( diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactorFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactorFactory.kt index 6fceff3..b430581 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactorFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/InfinityReactorFactory.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.ui.feature.todo +package com.sumera.koreactor.ui.feature.infinity import com.sumera.koreactor.injection.PerActivity -import com.sumera.koreactor.reactor.MviReactorFactory +import com.sumera.koreactorlib.reactor.MviReactorFactory import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityActions.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityActions.kt index acae89f..8521872 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityActions.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityActions.kt @@ -1,8 +1,7 @@ package com.sumera.koreactor.ui.feature.infinity.contract import com.sumera.koreactor.data.ToDoItem -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.ui.feature.todo.contract.InfinityState +import com.sumera.koreactorlib.reactor.data.MviAction sealed class InfinityActions : MviAction diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityEvents.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityEvents.kt index 1863666..cb93178 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityEvents.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityEvents.kt @@ -1,7 +1,6 @@ package com.sumera.koreactor.ui.feature.infinity.contract -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.ui.feature.todo.contract.InfinityState +import com.sumera.koreactorlib.reactor.data.MviEvent sealed class InfinityEvents : MviEvent diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityState.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityState.kt index 53356b8..0e17815 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityState.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.ui.feature.todo.contract +package com.sumera.koreactor.ui.feature.infinity.contract import com.sumera.koreactor.data.ToDoItem -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState data class InfinityState( val isInitialLoading: Boolean, diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityStateReducers.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityStateReducers.kt index 66d0a89..a6cac8e 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityStateReducers.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/infinity/contract/InfinityStateReducers.kt @@ -1,8 +1,7 @@ package com.sumera.koreactor.ui.feature.infinity.contract import com.sumera.koreactor.data.ToDoItem -import com.sumera.koreactor.reactor.data.MviStateReducer -import com.sumera.koreactor.ui.feature.todo.contract.InfinityState +import com.sumera.koreactorlib.reactor.data.MviStateReducer sealed class InfinityStateReducer : MviStateReducer diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainActivity.kt index 14b48a0..22ee6b9 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainActivity.kt @@ -4,8 +4,8 @@ import android.content.Intent import android.os.Bundle import com.jakewharton.rxbinding2.view.clicks import com.sumera.koreactor.R -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviEvent import com.sumera.koreactor.ui.base.BaseActivity import com.sumera.koreactor.ui.feature.counter.CounterActivity import com.sumera.koreactor.ui.feature.infinity.InfinityActivity diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactor.kt index 37f0c3e..dba18dc 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactor.kt @@ -1,7 +1,7 @@ package com.sumera.koreactor.ui.feature.main -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction import com.sumera.koreactor.ui.feature.main.contract.MainState import com.sumera.koreactor.ui.feature.main.contract.NavigateToCounterEvent import com.sumera.koreactor.ui.feature.main.contract.NavigateToInfinityEvent diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactorFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactorFactory.kt index bf1a0ed..bb33253 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactorFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/main/MainReactorFactory.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.main -import com.sumera.koreactor.reactor.MviReactorFactory +import com.sumera.koreactorlib.reactor.MviReactorFactory import com.sumera.koreactor.injection.PerActivity import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainActions.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainActions.kt index db21545..46b8bc8 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainActions.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainActions.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.main.contract -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviAction sealed class MainActions : MviAction diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainEvents.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainEvents.kt index 658d701..8a1d571 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainEvents.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainEvents.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.main.contract -import com.sumera.koreactor.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviEvent sealed class MainEvent : MviEvent diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainState.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainState.kt index a9315a6..88bd427 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/main/contract/MainState.kt @@ -1,5 +1,5 @@ package com.sumera.koreactor.ui.feature.main.contract -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState object MainState : MviState diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingActivity.kt index 1c1b561..81c20ad 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingActivity.kt @@ -2,15 +2,15 @@ package com.sumera.koreactor.ui.feature.simpleloading import android.os.Bundle import com.sumera.koreactor.R -import com.sumera.koreactor.reactor.MviReactor +import com.sumera.koreactorlib.reactor.MviReactor import com.sumera.koreactor.ui.base.BaseActivity import com.sumera.koreactor.ui.common.PlaceholderLayout import com.sumera.koreactor.ui.feature.simpleloading.contract.RetryClicked import com.sumera.koreactor.ui.feature.simpleloading.contract.SimpleLoadingState -import com.sumera.koreactor.util.data.asOptional -import com.sumera.koreactor.util.extension.getFalse -import com.sumera.koreactor.util.extension.getNotNull -import com.sumera.koreactor.util.extension.getTrue +import com.sumera.koreactorlib.util.data.asOptional +import com.sumera.koreactorlib.util.extension.getFalse +import com.sumera.koreactorlib.util.extension.getNotNull +import com.sumera.koreactorlib.util.extension.getTrue import io.reactivex.Observable import kotlinx.android.synthetic.main.activity_simple_loading.* import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingFactory.kt index 4324f28..7bf3a2a 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingFactory.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.simpleloading -import com.sumera.koreactor.reactor.MviReactorFactory +import com.sumera.koreactorlib.reactor.MviReactorFactory import com.sumera.koreactor.injection.PerActivity import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingReactor.kt index e3a2b98..d3d11a7 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/SimpleLoadingReactor.kt @@ -1,12 +1,12 @@ package com.sumera.koreactor.ui.feature.simpleloading -import com.sumera.koreactor.behaviour.ObservableWorker -import com.sumera.koreactor.behaviour.implementation.LoadingBehaviour -import com.sumera.koreactor.behaviour.messages -import com.sumera.koreactor.behaviour.triggers +import com.sumera.koreactorlib.behaviour.ObservableWorker +import com.sumera.koreactorlib.behaviour.implementation.LoadingBehaviour +import com.sumera.koreactorlib.behaviour.messages +import com.sumera.koreactorlib.behaviour.triggers import com.sumera.koreactor.domain.GetSomeTextDataInteractor -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction import com.sumera.koreactor.ui.feature.simpleloading.contract.RetryClicked import com.sumera.koreactor.ui.feature.simpleloading.contract.ShowData import com.sumera.koreactor.ui.feature.simpleloading.contract.ShowError diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingActions.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingActions.kt index dde7d99..6cacce2 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingActions.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingActions.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.simpleloading.contract -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviAction sealed class SimpleLoadingActions : MviAction diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingReducers.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingReducers.kt index eccdf08..5065832 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingReducers.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingReducers.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.simpleloading.contract -import com.sumera.koreactor.reactor.data.MviStateReducer +import com.sumera.koreactorlib.reactor.data.MviStateReducer sealed class SimpleLoadingReducer : MviStateReducer diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingState.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingState.kt index 921f667..0f70082 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/simpleloading/contract/SimpleLoadingState.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.simpleloading.contract -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState data class SimpleLoadingState( val isLoading: Boolean, diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerFragment.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerFragment.kt index 8e6f670..648e5e4 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerFragment.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerFragment.kt @@ -4,11 +4,11 @@ import android.os.Bundle import android.view.View import com.jakewharton.rxbinding2.view.clicks import com.sumera.koreactor.R -import com.sumera.koreactor.reactor.MviReactor import com.sumera.koreactor.ui.base.BaseFragment import com.sumera.koreactor.ui.feature.timer.contract.ResetTimerAction import com.sumera.koreactor.ui.feature.timer.contract.TimerState -import com.sumera.koreactor.util.extension.getChange +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.util.extension.getChange import io.reactivex.Observable import kotlinx.android.synthetic.main.fragment_timer.* import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactor.kt index 46fe48e..591d5b4 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactor.kt @@ -1,15 +1,15 @@ package com.sumera.koreactor.ui.feature.timer -import com.sumera.koreactor.behaviour.implementation.TimerBehaviour -import com.sumera.koreactor.behaviour.messages -import com.sumera.koreactor.behaviour.triggers -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactor.injection.PerFragment import com.sumera.koreactor.ui.feature.timer.contract.IncrementCountReducer import com.sumera.koreactor.ui.feature.timer.contract.ResetCountReducer import com.sumera.koreactor.ui.feature.timer.contract.ResetTimerAction import com.sumera.koreactor.ui.feature.timer.contract.TimerState -import com.sumera.koreactor.injection.PerFragment +import com.sumera.koreactorlib.behaviour.implementation.TimerBehaviour +import com.sumera.koreactorlib.behaviour.messages +import com.sumera.koreactorlib.behaviour.triggers +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction import io.reactivex.Observable import java.util.concurrent.TimeUnit import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactorFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactorFactory.kt index 27721df..b998fe9 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactorFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/TimerReactorFactory.kt @@ -1,7 +1,7 @@ package com.sumera.koreactor.ui.feature.timer -import com.sumera.koreactor.reactor.MviReactorFactory import com.sumera.koreactor.injection.PerFragment +import com.sumera.koreactorlib.reactor.MviReactorFactory import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerActions.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerActions.kt index 6f0d14e..524a3f8 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerActions.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerActions.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.timer.contract -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviAction sealed class TimerAction: MviAction diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerReducers.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerReducers.kt index 69bfcd6..3189c9e 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerReducers.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerReducers.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.timer.contract -import com.sumera.koreactor.reactor.data.MviStateReducer +import com.sumera.koreactorlib.reactor.data.MviStateReducer sealed class TimerReducer: MviStateReducer diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerState.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerState.kt index 1240fd8..30e1368 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/timer/contract/TimerState.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.timer.contract -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState data class TimerState( val timerValue: Int diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoActivity.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoActivity.kt index 6830d09..4e58de1 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoActivity.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoActivity.kt @@ -7,8 +7,8 @@ import android.widget.Toast import com.jakewharton.rxbinding2.support.v4.widget.refreshes import com.jakewharton.rxbinding2.view.clicks import com.sumera.koreactor.R -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviEvent import com.sumera.koreactor.ui.base.BaseActivity import com.sumera.koreactor.ui.common.PlaceholderLayout import com.sumera.koreactor.ui.feature.todo.adapter.ToDoAdapter @@ -22,9 +22,9 @@ import com.sumera.koreactor.ui.feature.todo.contract.ShowToastEverytime import com.sumera.koreactor.ui.feature.todo.contract.ShowToastOnlyVisible import com.sumera.koreactor.ui.feature.todo.contract.ShowToastOnlyVisibleBuffered import com.sumera.koreactor.ui.feature.todo.contract.ToDoState -import com.sumera.koreactor.util.data.asOptional -import com.sumera.koreactor.util.extension.getChange -import com.sumera.koreactor.util.extension.getTrue +import com.sumera.koreactorlib.util.data.asOptional +import com.sumera.koreactorlib.util.extension.getChange +import com.sumera.koreactorlib.util.extension.getTrue import io.reactivex.Observable import kotlinx.android.synthetic.main.activity_todo.* import javax.inject.Inject diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactor.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactor.kt index 1d6a3c7..9b5fb5b 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactor.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactor.kt @@ -1,18 +1,18 @@ package com.sumera.koreactor.ui.feature.todo -import com.sumera.koreactor.behaviour.ObservableWorker -import com.sumera.koreactor.behaviour.implementation.LoadingBehaviour -import com.sumera.koreactor.behaviour.implementation.ShowTemporaryBehaviour -import com.sumera.koreactor.behaviour.implementation.SwipeRefreshLoadingListBehaviour -import com.sumera.koreactor.behaviour.messages -import com.sumera.koreactor.behaviour.triggers +import com.sumera.koreactorlib.behaviour.ObservableWorker +import com.sumera.koreactorlib.behaviour.implementation.LoadingBehaviour +import com.sumera.koreactorlib.behaviour.implementation.ShowTemporaryBehaviour +import com.sumera.koreactorlib.behaviour.implementation.SwipeRefreshLoadingListBehaviour +import com.sumera.koreactorlib.behaviour.messages +import com.sumera.koreactorlib.behaviour.triggers import com.sumera.koreactor.data.ToDoItem import com.sumera.koreactor.domain.GetToDoItemsOnceInteractor import com.sumera.koreactor.domain.SaveToDoItemInteractor import com.sumera.koreactor.injection.PerActivity -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.lifecycle.AttachState +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.lifecycle.AttachState import com.sumera.koreactor.ui.feature.todo.adapter.ToDoItemWrapper import com.sumera.koreactor.ui.feature.todo.contract.AddToDoItem import com.sumera.koreactor.ui.feature.todo.contract.HideInfoMessage @@ -33,7 +33,7 @@ import com.sumera.koreactor.ui.feature.todo.contract.ShowToastEverytime import com.sumera.koreactor.ui.feature.todo.contract.ShowToastOnlyVisible import com.sumera.koreactor.ui.feature.todo.contract.ShowToastOnlyVisibleBuffered import com.sumera.koreactor.ui.feature.todo.contract.ToDoState -import com.sumera.koreactor.util.extension.ofLifecycleType +import com.sumera.koreactorlib.util.extension.ofLifecycleType import io.reactivex.Observable import io.reactivex.subjects.PublishSubject import java.util.concurrent.TimeUnit diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactorFactory.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactorFactory.kt index a400da0..e7917cd 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactorFactory.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/ToDoReactorFactory.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.todo -import com.sumera.koreactor.reactor.MviReactorFactory +import com.sumera.koreactorlib.reactor.MviReactorFactory import com.sumera.koreactor.injection.PerActivity import javax.inject.Inject import javax.inject.Provider diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoActions.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoActions.kt index fd5713d..848a221 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoActions.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoActions.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.todo.contract -import com.sumera.koreactor.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviAction import com.sumera.koreactor.ui.feature.todo.adapter.ToDoItemWrapper sealed class ToDoActions : MviAction diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoEvents.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoEvents.kt index ce39fe2..9756621 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoEvents.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoEvents.kt @@ -1,10 +1,10 @@ package com.sumera.koreactor.ui.feature.todo.contract -import com.sumera.koreactor.reactor.data.EveryTimeEventBehaviour -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviEventBehaviour -import com.sumera.koreactor.reactor.data.VisibleBufferedEventBehaviour -import com.sumera.koreactor.reactor.data.VisibleNonBufferedEventBehaviour +import com.sumera.koreactorlib.reactor.data.EveryTimeEventBehaviour +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviEventBehaviour +import com.sumera.koreactorlib.reactor.data.VisibleBufferedEventBehaviour +import com.sumera.koreactorlib.reactor.data.VisibleNonBufferedEventBehaviour sealed class ToDoEvents : MviEvent diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoReducers.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoReducers.kt index c98c3a6..ed6177d 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoReducers.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoReducers.kt @@ -1,7 +1,7 @@ package com.sumera.koreactor.ui.feature.todo.contract import com.sumera.koreactor.data.ToDoItem -import com.sumera.koreactor.reactor.data.MviStateReducer +import com.sumera.koreactorlib.reactor.data.MviStateReducer import com.sumera.koreactor.tools.extensions.replaceWithPredicate import com.sumera.koreactor.ui.feature.todo.adapter.ToDoItemWrapper diff --git a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoState.kt b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoState.kt index 0a885ec..947bc26 100644 --- a/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoState.kt +++ b/example/src/main/java/com/sumera/koreactor/ui/feature/todo/contract/ToDoState.kt @@ -1,6 +1,6 @@ package com.sumera.koreactor.ui.feature.todo.contract -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviState import com.sumera.koreactor.ui.feature.todo.adapter.ToDoItemWrapper data class ToDoState( diff --git a/example/src/test/java/com/sumera/koreactor/CounterRectorTest.kt b/example/src/test/java/com/sumera/koreactor/CounterRectorTest.kt index c1ef658..02b9b7b 100644 --- a/example/src/test/java/com/sumera/koreactor/CounterRectorTest.kt +++ b/example/src/test/java/com/sumera/koreactor/CounterRectorTest.kt @@ -3,7 +3,7 @@ package com.sumera.koreactor import com.sumera.koreactor.lib.ReactorTestRule import com.sumera.koreactor.lib.annotation.InitialLifecycleState import com.sumera.koreactor.lib.annotation.RunAfter -import com.sumera.koreactor.reactor.MviReactor +import com.sumera.koreactorlib.reactor.MviReactor import com.sumera.koreactor.ui.feature.counter.CounterReactor import com.sumera.koreactor.ui.feature.counter.contract.CounterState import com.sumera.koreactor.ui.feature.counter.contract.DecrementAction diff --git a/example/src/test/java/com/sumera/koreactor/SimpleLoadingReactorTest.kt b/example/src/test/java/com/sumera/koreactor/SimpleLoadingReactorTest.kt index d396ac4..7f5aa4a 100644 --- a/example/src/test/java/com/sumera/koreactor/SimpleLoadingReactorTest.kt +++ b/example/src/test/java/com/sumera/koreactor/SimpleLoadingReactorTest.kt @@ -5,7 +5,7 @@ import com.sumera.koreactor.domain.GetSomeTextDataInteractor import com.sumera.koreactor.lib.ReactorTestRule import com.sumera.koreactor.lib.annotation.InitialLifecycleState import com.sumera.koreactor.lib.annotation.RunAfter -import com.sumera.koreactor.reactor.MviReactor +import com.sumera.koreactorlib.reactor.MviReactor import com.sumera.koreactor.ui.feature.simpleloading.SimpleLoadingReactor import com.sumera.koreactor.ui.feature.simpleloading.contract.RetryClicked import com.sumera.koreactor.ui.feature.simpleloading.contract.SimpleLoadingState diff --git a/example/src/test/java/com/sumera/koreactor/lib/ReactorTestRule.kt b/example/src/test/java/com/sumera/koreactor/lib/ReactorTestRule.kt index 9a13841..9bc6879 100644 --- a/example/src/test/java/com/sumera/koreactor/lib/ReactorTestRule.kt +++ b/example/src/test/java/com/sumera/koreactor/lib/ReactorTestRule.kt @@ -2,8 +2,8 @@ package com.sumera.koreactor.lib import com.sumera.koreactor.lib.annotation.InitialLifecycleState import com.sumera.koreactor.lib.annotation.RunAfter -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.android.plugins.RxAndroidPlugins import io.reactivex.plugins.RxJavaPlugins import io.reactivex.schedulers.TestScheduler diff --git a/example/src/test/java/com/sumera/koreactor/lib/ReactorTestWrapper.kt b/example/src/test/java/com/sumera/koreactor/lib/ReactorTestWrapper.kt index 464c455..c12c244 100644 --- a/example/src/test/java/com/sumera/koreactor/lib/ReactorTestWrapper.kt +++ b/example/src/test/java/com/sumera/koreactor/lib/ReactorTestWrapper.kt @@ -1,17 +1,17 @@ package com.sumera.koreactor.lib -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.reactor.lifecycle.CreateState -import com.sumera.koreactor.reactor.lifecycle.DestroyState -import com.sumera.koreactor.reactor.lifecycle.DetachState -import com.sumera.koreactor.reactor.lifecycle.LifecycleState -import com.sumera.koreactor.reactor.lifecycle.PauseState -import com.sumera.koreactor.reactor.lifecycle.ResumeState -import com.sumera.koreactor.reactor.lifecycle.StartState -import com.sumera.koreactor.reactor.lifecycle.StopState +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.reactor.lifecycle.CreateState +import com.sumera.koreactorlib.reactor.lifecycle.DestroyState +import com.sumera.koreactorlib.reactor.lifecycle.DetachState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState +import com.sumera.koreactorlib.reactor.lifecycle.PauseState +import com.sumera.koreactorlib.reactor.lifecycle.ResumeState +import com.sumera.koreactorlib.reactor.lifecycle.StartState +import com.sumera.koreactorlib.reactor.lifecycle.StopState import io.reactivex.schedulers.TestScheduler class ReactorTestWrapper( diff --git a/example/src/test/java/com/sumera/koreactor/lib/TestMviBindableDelegate.kt b/example/src/test/java/com/sumera/koreactor/lib/TestMviBindableDelegate.kt index b73abcb..5fe5e19 100644 --- a/example/src/test/java/com/sumera/koreactor/lib/TestMviBindableDelegate.kt +++ b/example/src/test/java/com/sumera/koreactor/lib/TestMviBindableDelegate.kt @@ -1,10 +1,10 @@ package com.sumera.koreactor.lib -import com.sumera.koreactor.internal.extension.isViewStarted -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.reactor.lifecycle.LifecycleState -import com.sumera.koreactor.view.MviBindableViewDelegate +import com.sumera.koreactorlib.internal.extension.isViewStarted +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState +import com.sumera.koreactorlib.view.MviBindableViewDelegate import io.reactivex.Observable import io.reactivex.observers.TestObserver import io.reactivex.subjects.PublishSubject diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/MviBehaviour.kt b/lib/src/main/java/com/sumera/koreactor/behaviour/MviBehaviour.kt deleted file mode 100644 index 93cef23..0000000 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/MviBehaviour.kt +++ /dev/null @@ -1,10 +0,0 @@ -package com.sumera.koreactor.behaviour - -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState -import io.reactivex.Observable - -interface MviBehaviour { - - fun createObservable(): Observable> -} diff --git a/lib/src/main/java/com/sumera/koreactor/internal/data/EventWithLifecycle.kt b/lib/src/main/java/com/sumera/koreactor/internal/data/EventWithLifecycle.kt deleted file mode 100644 index eb916a4..0000000 --- a/lib/src/main/java/com/sumera/koreactor/internal/data/EventWithLifecycle.kt +++ /dev/null @@ -1,10 +0,0 @@ -package com.sumera.koreactor.internal.data - -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.reactor.lifecycle.LifecycleState - -data class EventWithLifecycle ( - val event: MviEvent, - val lifecycleState: LifecycleState -) \ No newline at end of file diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviAction.kt b/lib/src/main/java/com/sumera/koreactor/reactor/data/MviAction.kt deleted file mode 100644 index 5c79da6..0000000 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviAction.kt +++ /dev/null @@ -1,5 +0,0 @@ -package com.sumera.koreactor.reactor.data - -interface MviAction - - diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviState.kt b/lib/src/main/java/com/sumera/koreactor/reactor/data/MviState.kt deleted file mode 100644 index fbf91de..0000000 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviState.kt +++ /dev/null @@ -1,3 +0,0 @@ -package com.sumera.koreactor.reactor.data - -interface MviState \ No newline at end of file diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/Messages.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/Messages.kt similarity index 65% rename from lib/src/main/java/com/sumera/koreactor/behaviour/Messages.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/Messages.kt index a278208..3be4fe8 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/Messages.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/Messages.kt @@ -1,8 +1,8 @@ -package com.sumera.koreactor.behaviour +package com.sumera.koreactorlib.behaviour -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviReactorMessageCollection -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviReactorMessageCollection +import com.sumera.koreactorlib.reactor.data.MviState import java.util.* class Messages( diff --git a/lib/src/main/java/com/sumera/koreactorlib/behaviour/MviBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/MviBehaviour.kt new file mode 100644 index 0000000..48ed456 --- /dev/null +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/MviBehaviour.kt @@ -0,0 +1,10 @@ +package com.sumera.koreactorlib.behaviour + +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState +import io.reactivex.Observable + +interface MviBehaviour { + + fun createObservable(): Observable> +} diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/Triggers.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/Triggers.kt similarity index 91% rename from lib/src/main/java/com/sumera/koreactor/behaviour/Triggers.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/Triggers.kt index 49cdefe..2c4fa0f 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/Triggers.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/Triggers.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.behaviour +package com.sumera.koreactorlib.behaviour import io.reactivex.Observable import io.reactivex.Single diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/Worker.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/Worker.kt similarity index 94% rename from lib/src/main/java/com/sumera/koreactor/behaviour/Worker.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/Worker.kt index e8a9eca..18e3668 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/Worker.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/Worker.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.behaviour +package com.sumera.koreactorlib.behaviour import io.reactivex.Observable import io.reactivex.Single diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/InfinityLoadingBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/InfinityLoadingBehaviour.kt similarity index 82% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/InfinityLoadingBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/InfinityLoadingBehaviour.kt index 79394a3..ee270fa 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/InfinityLoadingBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/InfinityLoadingBehaviour.kt @@ -1,11 +1,11 @@ -package com.sumera.koreactor.behaviour.implementation - -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.behaviour.Worker -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +package com.sumera.koreactorlib.behaviour.implementation + +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.behaviour.Worker +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable data class InfinityLoadingBehaviour( diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/LoadingBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/LoadingBehaviour.kt similarity index 73% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/LoadingBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/LoadingBehaviour.kt index 919daab..094fc09 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/LoadingBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/LoadingBehaviour.kt @@ -1,11 +1,11 @@ -package com.sumera.koreactor.behaviour.implementation +package com.sumera.koreactorlib.behaviour.implementation -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.behaviour.Worker -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.behaviour.Worker +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable data class LoadingBehaviour( diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/LoadingListBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/LoadingListBehaviour.kt similarity index 76% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/LoadingListBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/LoadingListBehaviour.kt index fa37496..60e997f 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/LoadingListBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/LoadingListBehaviour.kt @@ -1,11 +1,11 @@ -package com.sumera.koreactor.behaviour.implementation +package com.sumera.koreactorlib.behaviour.implementation -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.behaviour.Worker -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.behaviour.Worker +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable data class LoadingListBehaviour( diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/ShowTemporaryBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/ShowTemporaryBehaviour.kt similarity index 74% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/ShowTemporaryBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/ShowTemporaryBehaviour.kt index b64dbdc..dd0625e 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/ShowTemporaryBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/ShowTemporaryBehaviour.kt @@ -1,10 +1,10 @@ -package com.sumera.koreactor.behaviour.implementation +package com.sumera.koreactorlib.behaviour.implementation -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable import java.util.concurrent.TimeUnit diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/SwipeRefreshLoadingBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/SwipeRefreshLoadingBehaviour.kt similarity index 83% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/SwipeRefreshLoadingBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/SwipeRefreshLoadingBehaviour.kt index 0424098..76c090a 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/SwipeRefreshLoadingBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/SwipeRefreshLoadingBehaviour.kt @@ -1,11 +1,11 @@ -package com.sumera.koreactor.behaviour.implementation - -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.behaviour.Worker -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +package com.sumera.koreactorlib.behaviour.implementation + +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.behaviour.Worker +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable data class SwipeRefreshLoadingBehaviour( diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/SwipeRefreshLoadingListBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/SwipeRefreshLoadingListBehaviour.kt similarity index 84% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/SwipeRefreshLoadingListBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/SwipeRefreshLoadingListBehaviour.kt index ef488c1..3b84188 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/SwipeRefreshLoadingListBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/SwipeRefreshLoadingListBehaviour.kt @@ -1,11 +1,11 @@ -package com.sumera.koreactor.behaviour.implementation - -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.behaviour.Worker -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +package com.sumera.koreactorlib.behaviour.implementation + +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.behaviour.Worker +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable data class SwipeRefreshLoadingListBehaviour( diff --git a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/TimerBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/TimerBehaviour.kt similarity index 67% rename from lib/src/main/java/com/sumera/koreactor/behaviour/implementation/TimerBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/TimerBehaviour.kt index f371aea..78432ac 100644 --- a/lib/src/main/java/com/sumera/koreactor/behaviour/implementation/TimerBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/behaviour/implementation/TimerBehaviour.kt @@ -1,10 +1,10 @@ -package com.sumera.koreactor.behaviour.implementation +package com.sumera.koreactorlib.behaviour.implementation -import com.sumera.koreactor.behaviour.Messages -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.behaviour.Triggers -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.behaviour.Messages +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.behaviour.Triggers +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable import java.util.concurrent.TimeUnit diff --git a/lib/src/main/java/com/sumera/koreactor/internal/data/Either.kt b/lib/src/main/java/com/sumera/koreactorlib/internal/data/Either.kt similarity index 88% rename from lib/src/main/java/com/sumera/koreactor/internal/data/Either.kt rename to lib/src/main/java/com/sumera/koreactorlib/internal/data/Either.kt index f35260a..64e712e 100644 --- a/lib/src/main/java/com/sumera/koreactor/internal/data/Either.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/internal/data/Either.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.internal.data +package com.sumera.koreactorlib.internal.data sealed class Either diff --git a/lib/src/main/java/com/sumera/koreactorlib/internal/data/EventWithLifecycle.kt b/lib/src/main/java/com/sumera/koreactorlib/internal/data/EventWithLifecycle.kt new file mode 100644 index 0000000..5a7eda4 --- /dev/null +++ b/lib/src/main/java/com/sumera/koreactorlib/internal/data/EventWithLifecycle.kt @@ -0,0 +1,10 @@ +package com.sumera.koreactorlib.internal.data + +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState + +data class EventWithLifecycle ( + val event: MviEvent, + val lifecycleState: LifecycleState +) \ No newline at end of file diff --git a/lib/src/main/java/com/sumera/koreactor/internal/extension/EventObservableExtensions.kt b/lib/src/main/java/com/sumera/koreactorlib/internal/extension/EventObservableExtensions.kt similarity index 81% rename from lib/src/main/java/com/sumera/koreactor/internal/extension/EventObservableExtensions.kt rename to lib/src/main/java/com/sumera/koreactorlib/internal/extension/EventObservableExtensions.kt index d162c5d..9b5eaec 100644 --- a/lib/src/main/java/com/sumera/koreactor/internal/extension/EventObservableExtensions.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/internal/extension/EventObservableExtensions.kt @@ -1,9 +1,9 @@ -package com.sumera.koreactor.internal.extension +package com.sumera.koreactorlib.internal.extension -import com.sumera.koreactor.internal.data.EventWithLifecycle -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.reactor.lifecycle.LifecycleState +import com.sumera.koreactorlib.internal.data.EventWithLifecycle +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState import hu.akarnokd.rxjava2.operators.FlowableTransformers import io.reactivex.BackpressureStrategy import io.reactivex.Observable diff --git a/lib/src/main/java/com/sumera/koreactor/internal/extension/LifecycleEventExtensions.kt b/lib/src/main/java/com/sumera/koreactorlib/internal/extension/LifecycleEventExtensions.kt similarity index 83% rename from lib/src/main/java/com/sumera/koreactor/internal/extension/LifecycleEventExtensions.kt rename to lib/src/main/java/com/sumera/koreactorlib/internal/extension/LifecycleEventExtensions.kt index 29b2d7c..ee60e83 100644 --- a/lib/src/main/java/com/sumera/koreactor/internal/extension/LifecycleEventExtensions.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/internal/extension/LifecycleEventExtensions.kt @@ -1,6 +1,6 @@ -package com.sumera.koreactor.internal.extension +package com.sumera.koreactorlib.internal.extension -import com.sumera.koreactor.reactor.lifecycle.* +import com.sumera.koreactorlib.reactor.lifecycle.* fun LifecycleState.isViewStarted(): Boolean = when(this) { is AttachState -> false diff --git a/lib/src/main/java/com/sumera/koreactor/internal/util/DetachReactorHelper.kt b/lib/src/main/java/com/sumera/koreactorlib/internal/util/DetachReactorHelper.kt similarity index 91% rename from lib/src/main/java/com/sumera/koreactor/internal/util/DetachReactorHelper.kt rename to lib/src/main/java/com/sumera/koreactorlib/internal/util/DetachReactorHelper.kt index 68a3875..143409f 100644 --- a/lib/src/main/java/com/sumera/koreactor/internal/util/DetachReactorHelper.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/internal/util/DetachReactorHelper.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.internal.util +package com.sumera.koreactorlib.internal.util import android.app.Activity import android.support.v4.app.Fragment diff --git a/lib/src/main/java/com/sumera/koreactor/internal/util/LifecycleEventCorrectOrderValidator.kt b/lib/src/main/java/com/sumera/koreactorlib/internal/util/LifecycleEventCorrectOrderValidator.kt similarity index 55% rename from lib/src/main/java/com/sumera/koreactor/internal/util/LifecycleEventCorrectOrderValidator.kt rename to lib/src/main/java/com/sumera/koreactorlib/internal/util/LifecycleEventCorrectOrderValidator.kt index 1dc1ee4..d7a2061 100644 --- a/lib/src/main/java/com/sumera/koreactor/internal/util/LifecycleEventCorrectOrderValidator.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/internal/util/LifecycleEventCorrectOrderValidator.kt @@ -1,14 +1,14 @@ -package com.sumera.koreactor.internal.util +package com.sumera.koreactorlib.internal.util -import com.sumera.koreactor.reactor.lifecycle.AttachState -import com.sumera.koreactor.reactor.lifecycle.CreateState -import com.sumera.koreactor.reactor.lifecycle.DestroyState -import com.sumera.koreactor.reactor.lifecycle.DetachState -import com.sumera.koreactor.reactor.lifecycle.LifecycleState -import com.sumera.koreactor.reactor.lifecycle.PauseState -import com.sumera.koreactor.reactor.lifecycle.ResumeState -import com.sumera.koreactor.reactor.lifecycle.StartState -import com.sumera.koreactor.reactor.lifecycle.StopState +import com.sumera.koreactorlib.reactor.lifecycle.AttachState +import com.sumera.koreactorlib.reactor.lifecycle.CreateState +import com.sumera.koreactorlib.reactor.lifecycle.DestroyState +import com.sumera.koreactorlib.reactor.lifecycle.DetachState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState +import com.sumera.koreactorlib.reactor.lifecycle.PauseState +import com.sumera.koreactorlib.reactor.lifecycle.ResumeState +import com.sumera.koreactorlib.reactor.lifecycle.StartState +import com.sumera.koreactorlib.reactor.lifecycle.StopState object LifecycleEventCorrectOrderValidator { diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/MviReactor.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/MviReactor.kt similarity index 83% rename from lib/src/main/java/com/sumera/koreactor/reactor/MviReactor.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/MviReactor.kt index e89141c..a16b7a0 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/MviReactor.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/MviReactor.kt @@ -1,29 +1,29 @@ -package com.sumera.koreactor.reactor +package com.sumera.koreactorlib.reactor import android.arch.lifecycle.ViewModel -import com.sumera.koreactor.behaviour.MviBehaviour -import com.sumera.koreactor.internal.data.fold -import com.sumera.koreactor.internal.extension.cacheEventsUntilViewIsCreated -import com.sumera.koreactor.internal.extension.cacheEventsUntilViewIsStarted -import com.sumera.koreactor.internal.extension.throwEventsAwayIfViewIsNotStarted -import com.sumera.koreactor.internal.util.LifecycleEventCorrectOrderValidator -import com.sumera.koreactor.reactor.data.EventOrReducer -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviReactorMessage -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.reactor.data.MviStateReducer -import com.sumera.koreactor.reactor.lifecycle.AttachState -import com.sumera.koreactor.reactor.lifecycle.CreateState -import com.sumera.koreactor.reactor.lifecycle.DestroyState -import com.sumera.koreactor.reactor.lifecycle.DetachState -import com.sumera.koreactor.reactor.lifecycle.LifecycleState -import com.sumera.koreactor.reactor.lifecycle.PauseState -import com.sumera.koreactor.reactor.lifecycle.ResumeState -import com.sumera.koreactor.reactor.lifecycle.StartState -import com.sumera.koreactor.reactor.lifecycle.StopState -import com.sumera.koreactor.util.extension.ofLifecycleType -import com.sumera.koreactor.view.MviBindableViewDelegate +import com.sumera.koreactorlib.behaviour.MviBehaviour +import com.sumera.koreactorlib.internal.data.fold +import com.sumera.koreactorlib.internal.extension.cacheEventsUntilViewIsCreated +import com.sumera.koreactorlib.internal.extension.cacheEventsUntilViewIsStarted +import com.sumera.koreactorlib.internal.extension.throwEventsAwayIfViewIsNotStarted +import com.sumera.koreactorlib.internal.util.LifecycleEventCorrectOrderValidator +import com.sumera.koreactorlib.reactor.data.EventOrReducer +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviReactorMessage +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviStateReducer +import com.sumera.koreactorlib.reactor.lifecycle.AttachState +import com.sumera.koreactorlib.reactor.lifecycle.CreateState +import com.sumera.koreactorlib.reactor.lifecycle.DestroyState +import com.sumera.koreactorlib.reactor.lifecycle.DetachState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState +import com.sumera.koreactorlib.reactor.lifecycle.PauseState +import com.sumera.koreactorlib.reactor.lifecycle.ResumeState +import com.sumera.koreactorlib.reactor.lifecycle.StartState +import com.sumera.koreactorlib.reactor.lifecycle.StopState +import com.sumera.koreactorlib.util.extension.ofLifecycleType +import com.sumera.koreactorlib.view.MviBindableViewDelegate import io.reactivex.Observable import io.reactivex.Single import io.reactivex.android.schedulers.AndroidSchedulers diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/MviReactorFactory.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/MviReactorFactory.kt similarity index 88% rename from lib/src/main/java/com/sumera/koreactor/reactor/MviReactorFactory.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/MviReactorFactory.kt index 7e5a543..3ab7c08 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/MviReactorFactory.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/MviReactorFactory.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.reactor +package com.sumera.koreactorlib.reactor import android.arch.lifecycle.ViewModel import android.arch.lifecycle.ViewModelProvider diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/EventOrReducer.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/EventOrReducer.kt similarity index 63% rename from lib/src/main/java/com/sumera/koreactor/reactor/data/EventOrReducer.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/data/EventOrReducer.kt index ef022d2..ff8934b 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/EventOrReducer.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/EventOrReducer.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.reactor.data +package com.sumera.koreactorlib.reactor.data -import com.sumera.koreactor.internal.data.Either -import com.sumera.koreactor.internal.data.fold +import com.sumera.koreactorlib.internal.data.Either +import com.sumera.koreactorlib.internal.data.fold interface EventOrReducer : MviReactorMessage { diff --git a/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviAction.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviAction.kt new file mode 100644 index 0000000..ad44cd3 --- /dev/null +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviAction.kt @@ -0,0 +1,5 @@ +package com.sumera.koreactorlib.reactor.data + +interface MviAction + + diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviEvent.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviEvent.kt similarity index 69% rename from lib/src/main/java/com/sumera/koreactor/reactor/data/MviEvent.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviEvent.kt index ab9966d..c2a6a09 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviEvent.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviEvent.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.reactor.data +package com.sumera.koreactorlib.reactor.data -import com.sumera.koreactor.internal.data.Either -import com.sumera.koreactor.internal.data.EitherLeft +import com.sumera.koreactorlib.internal.data.Either +import com.sumera.koreactorlib.internal.data.EitherLeft interface MviEvent : EventOrReducer, MviReactorMessage { diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviEventBehaviour.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviEventBehaviour.kt similarity index 92% rename from lib/src/main/java/com/sumera/koreactor/reactor/data/MviEventBehaviour.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviEventBehaviour.kt index e0db8ef..81cbda3 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviEventBehaviour.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviEventBehaviour.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.reactor.data +package com.sumera.koreactorlib.reactor.data sealed class MviEventBehaviour { diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviReactorMessage.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviReactorMessage.kt similarity index 70% rename from lib/src/main/java/com/sumera/koreactor/reactor/data/MviReactorMessage.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviReactorMessage.kt index c4205d4..e51db09 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviReactorMessage.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviReactorMessage.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.reactor.data +package com.sumera.koreactorlib.reactor.data interface MviReactorMessage { diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviReactorMessageCollection.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviReactorMessageCollection.kt similarity index 86% rename from lib/src/main/java/com/sumera/koreactor/reactor/data/MviReactorMessageCollection.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviReactorMessageCollection.kt index e64cd9a..aebc8af 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviReactorMessageCollection.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviReactorMessageCollection.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.reactor.data +package com.sumera.koreactorlib.reactor.data class MviReactorMessageCollection( private val values: Collection> diff --git a/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviState.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviState.kt new file mode 100644 index 0000000..d8b9748 --- /dev/null +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviState.kt @@ -0,0 +1,3 @@ +package com.sumera.koreactorlib.reactor.data + +interface MviState \ No newline at end of file diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviStateReducer.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviStateReducer.kt similarity index 68% rename from lib/src/main/java/com/sumera/koreactor/reactor/data/MviStateReducer.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviStateReducer.kt index cce25fe..5e8696a 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/data/MviStateReducer.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/data/MviStateReducer.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.reactor.data +package com.sumera.koreactorlib.reactor.data -import com.sumera.koreactor.internal.data.Either -import com.sumera.koreactor.internal.data.EitherRight +import com.sumera.koreactorlib.internal.data.Either +import com.sumera.koreactorlib.internal.data.EitherRight interface MviStateReducer : EventOrReducer, MviReactorMessage { diff --git a/lib/src/main/java/com/sumera/koreactor/reactor/lifecycle/Lifecycle.kt b/lib/src/main/java/com/sumera/koreactorlib/reactor/lifecycle/Lifecycle.kt similarity index 89% rename from lib/src/main/java/com/sumera/koreactor/reactor/lifecycle/Lifecycle.kt rename to lib/src/main/java/com/sumera/koreactorlib/reactor/lifecycle/Lifecycle.kt index a553580..8f4f284 100644 --- a/lib/src/main/java/com/sumera/koreactor/reactor/lifecycle/Lifecycle.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/reactor/lifecycle/Lifecycle.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.reactor.lifecycle +package com.sumera.koreactorlib.reactor.lifecycle sealed class LifecycleState { override fun toString(): String { diff --git a/lib/src/main/java/com/sumera/koreactor/util/data/Optional.kt b/lib/src/main/java/com/sumera/koreactorlib/util/data/Optional.kt similarity index 81% rename from lib/src/main/java/com/sumera/koreactor/util/data/Optional.kt rename to lib/src/main/java/com/sumera/koreactorlib/util/data/Optional.kt index d97186a..8661468 100644 --- a/lib/src/main/java/com/sumera/koreactor/util/data/Optional.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/util/data/Optional.kt @@ -1,4 +1,4 @@ -package com.sumera.koreactor.util.data +package com.sumera.koreactorlib.util.data data class Optional(val value: T?) { diff --git a/lib/src/main/java/com/sumera/koreactor/util/extension/LifecycleObservable.kt b/lib/src/main/java/com/sumera/koreactorlib/util/extension/LifecycleObservable.kt similarity index 60% rename from lib/src/main/java/com/sumera/koreactor/util/extension/LifecycleObservable.kt rename to lib/src/main/java/com/sumera/koreactorlib/util/extension/LifecycleObservable.kt index 441a26c..5b6589e 100644 --- a/lib/src/main/java/com/sumera/koreactor/util/extension/LifecycleObservable.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/util/extension/LifecycleObservable.kt @@ -1,6 +1,6 @@ -package com.sumera.koreactor.util.extension +package com.sumera.koreactorlib.util.extension -import com.sumera.koreactor.reactor.lifecycle.LifecycleState +import com.sumera.koreactorlib.reactor.lifecycle.LifecycleState import io.reactivex.Observable inline fun Observable.ofLifecycleType(): Observable { diff --git a/lib/src/main/java/com/sumera/koreactor/util/extension/MviStateObservable.kt b/lib/src/main/java/com/sumera/koreactorlib/util/extension/MviStateObservable.kt similarity index 89% rename from lib/src/main/java/com/sumera/koreactor/util/extension/MviStateObservable.kt rename to lib/src/main/java/com/sumera/koreactorlib/util/extension/MviStateObservable.kt index 54a670a..2c69125 100644 --- a/lib/src/main/java/com/sumera/koreactor/util/extension/MviStateObservable.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/util/extension/MviStateObservable.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.util.extension +package com.sumera.koreactorlib.util.extension -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.util.data.Optional +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.util.data.Optional import io.reactivex.Observable fun Observable.getChange(action: (T) -> (V)) : Observable { diff --git a/lib/src/main/java/com/sumera/koreactor/view/MviBindableView.kt b/lib/src/main/java/com/sumera/koreactorlib/view/MviBindableView.kt similarity index 59% rename from lib/src/main/java/com/sumera/koreactor/view/MviBindableView.kt rename to lib/src/main/java/com/sumera/koreactorlib/view/MviBindableView.kt index 4d5941d..8a1672f 100644 --- a/lib/src/main/java/com/sumera/koreactor/view/MviBindableView.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/view/MviBindableView.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.view +package com.sumera.koreactorlib.view -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable interface MviBindableView { diff --git a/lib/src/main/java/com/sumera/koreactor/view/MviBindableViewDelegate.kt b/lib/src/main/java/com/sumera/koreactorlib/view/MviBindableViewDelegate.kt similarity index 66% rename from lib/src/main/java/com/sumera/koreactor/view/MviBindableViewDelegate.kt rename to lib/src/main/java/com/sumera/koreactorlib/view/MviBindableViewDelegate.kt index 81fb22a..f0e7947 100644 --- a/lib/src/main/java/com/sumera/koreactor/view/MviBindableViewDelegate.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/view/MviBindableViewDelegate.kt @@ -1,7 +1,7 @@ -package com.sumera.koreactor.view +package com.sumera.koreactorlib.view -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState import io.reactivex.Observable interface MviBindableViewDelegate { diff --git a/lib/src/main/java/com/sumera/koreactor/view/delegate/MviReactorDelegate.kt b/lib/src/main/java/com/sumera/koreactorlib/view/delegate/MviReactorDelegate.kt similarity index 86% rename from lib/src/main/java/com/sumera/koreactor/view/delegate/MviReactorDelegate.kt rename to lib/src/main/java/com/sumera/koreactorlib/view/delegate/MviReactorDelegate.kt index 0e48d83..88c1857 100644 --- a/lib/src/main/java/com/sumera/koreactor/view/delegate/MviReactorDelegate.kt +++ b/lib/src/main/java/com/sumera/koreactorlib/view/delegate/MviReactorDelegate.kt @@ -1,15 +1,15 @@ -package com.sumera.koreactor.view.delegate +package com.sumera.koreactorlib.view.delegate import android.app.Activity import android.os.Bundle import android.support.v4.app.Fragment -import com.sumera.koreactor.internal.util.DetachReactorHelper -import com.sumera.koreactor.reactor.MviReactor -import com.sumera.koreactor.reactor.data.MviAction -import com.sumera.koreactor.reactor.data.MviEvent -import com.sumera.koreactor.reactor.data.MviState -import com.sumera.koreactor.view.MviBindableView -import com.sumera.koreactor.view.MviBindableViewDelegate +import com.sumera.koreactorlib.internal.util.DetachReactorHelper +import com.sumera.koreactorlib.reactor.MviReactor +import com.sumera.koreactorlib.reactor.data.MviAction +import com.sumera.koreactorlib.reactor.data.MviEvent +import com.sumera.koreactorlib.reactor.data.MviState +import com.sumera.koreactorlib.view.MviBindableView +import com.sumera.koreactorlib.view.MviBindableViewDelegate import io.reactivex.Observable import io.reactivex.disposables.CompositeDisposable import io.reactivex.rxkotlin.plusAssign