3.0.0
New (Public API):
- Model-View-Intent (MVI) Module:
com.hannesdorfmann.mosby3:mvi:3.0.0
New (Internal usage only):
- mvi-common Module (internal usage only). Common interfaces for MVI (shared with conductor Mosby plugin)
- PresenterManager Module (internal usage only): Is used internally by MVP and MVI to keep presenters during screen orientation changes, back stack navigation etc.
- utils-fragment Module (internal usage only): Is used internally to determine if a Fragment is on back stack or not.
Changes:
- Package name has been changed from
com.hannesdorfmann.mosby
tocom.hannesdorfmann.mosby3
(note the 3 at the end). Just update your import statements to migrate to Mosby 3.0: In Android Studio doEdit -> Find -> Replace in Path ...
and set findimport com.hannesdorfmann.mosby
replace withimport com.hannesdorfmann.mosby3
. - Moved
MvpBasePresenter
frommvp-common
module intomvp
module MvpNullObjectBasePresenter
has been moved into own module:com.hannesdorfmann.mosby3:mvp-nullobject-presenter:3.0.0
MvpNullObjectBasePresenter
: getView() is has now protected visibility and uses WeakReference internally- Moved LCE (Loading-Content-Error) related classes into own module:
com.hannesdorfmann.mosby3: mvp-lce:3.0.0
MvpActivity
,MvpFragment
, etc. no longer have methods likeisRetainInstance()
,setRetainInstance()
andshouldInstanceBeRetained()
. This functionality is now part of the corresponding delegate such asActivityMvpDelegate
,FragmentMvpDelegate
etc.- Some Mosby internal fixes / improvements.
Deprecations:
- Deprecated
ArrayListLceViewState
andCastedArrayListLceViewState
. UseParcelableListLceViewState
instead.
Removed:
- Removed
MvpViewStateViewGroupDelegateCallback
- Removed mvp testing module
- Removed deprecated
RetainingFragmentLceViewState
(deprecated in Mosby 2.0). UseRetainingLceViewState
.
Thanks to all contributors!