Skip to content

3.0.0

Compare
Choose a tag to compare
@sockeqwe sockeqwe released this 11 Mar 16:44
· 133 commits to master since this release

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!