A Mosby based VIPER library for Android
Scheduler
. Please review your IPC streams, as in some cases this may be a breaking change.Scheduler
(see above),Log.e("Moviper, "IPC default error handler: ", e);
,getPresenterInstanceOrError
method that returns Single
,CommonBasePresenter
):
2.0.1
)RecyclerView
- presenters did not detach from a view on the recycle.getName()
with PresenterInstancesAccess
enabled. It's useful when you don't want to use presenter instance access on the particular class but just regular PresentersAccessUtil
.Library has ben split to multiple modules to avoid importing unnecessary dependencies to your project. See the Dependency paragraph of the readme to find out which ones you need.
This release introduces some breaking changes. All stuff listed below is also mentioned in the Migration guide.
Introduced:
onCreate(...)
/ onViewCreated(..)
method. Instead, in plain Ai Views you have to provide the layout id by overriding a getLayoutId()
method and
to perform any view injections, getting references to views etc. by overriding a injectViews()
method. In addition, it contains the pre-baked classes, where these methods are already implemented inside of base classes for:
getPresenter()
method of this kind of views does not return Presenter of some exact type, but as a general ViperPresenter
, so calling any meaningful methods on it is impossible. As in the previous point, it also contains the pre baked classes for:
MoviperPresentersDispatcher
tool that allows you to choose the View's (especially Activity) presenter on the runtime without a need of putting it to the Bundle
with all it's limitations.ViperPresentersList
that allows you to easily attach multiple presenters to the Passive Views.Service
based VIPERs to allow you to maintain a uniform architecture between your app's views and services. It includes support for:
Service
'sIntentService
'smoviper-test
module that contains useful testing tools:
FragmentTestRule
to perform Fragment instrumentation tests in isolation,MoviperActivityTestRule
to perform Viper Activity instrumentation tests with proper cleanup,ViewHolderTestRule
to perform Recyclerview's ViewHolder instrumentation tests in isolation,RxAndroidSchedulersOverrideRule
to override AndroidSchedulers.mainThread()
behaviour in unit tests,ViewHolderUnitTestAcrivity
to perform Recyclerview's ViewHolder Robolectric unit tests in isolation,RecyclerViewMatcher
to match RecyclerView's contents in Espresso instrumentation tests.And added some more Javadocs
Once again, many thanks to guys that helped me in Moviper development implementing my ideas under my guidance:
MoviperPresetnersDispatcher
, super-rx-ai sample,This release introduces some breaking changes. All stuff listed below is also mentioned in the Migration guide.
ViewHolder
s. Now they can represent a View in a VIPER architecture. See sample-recyclerview
.Many thanks to guys that helped me in Moviper development implementing my ideas.
isRoutingAttached()
and isInteractorAttached()
methods.