Mosby v3.0.0 Release Notes

Release Date: 2017-03-11 // about 7 years ago
  • ๐Ÿ†• 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 to com.hannesdorfmann.mosby3 (note the 3 at the end). Just update your import statements to migrate to Mosby 3.0: In Android Studio do Edit -> Find -> Replace in Path ...
      and set find import com.hannesdorfmann.mosby replace with import com.hannesdorfmann.mosby3.
    • ๐Ÿšš Moved MvpBasePresenter from mvp-common module into mvp 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 like isRetainInstance(), setRetainInstance() and shouldInstanceBeRetained(). This functionality is now part of the corresponding delegate such as ActivityMvpDelegate, FragmentMvpDelegate etc.
    • ๐Ÿ›  Some Mosby internal fixes / improvements.

    ๐Ÿ—„ Deprecations:

    • ๐Ÿ—„ Deprecated ArrayListLceViewState and CastedArrayListLceViewState. Use ParcelableListLceViewState instead.

    โœ‚ Removed:

    • โœ‚ Removed MvpViewStateViewGroupDelegateCallback
    • โœ‚ Removed mvp testing module
    • โœ‚ Removed deprecated RetainingFragmentLceViewState (deprecated in Mosby 2.0). Use RetainingLceViewState.

    Thanks to all contributors!