Mosby v3.1.1 Release Notes

Release Date: 2018-12-17 // over 5 years ago
  • ๐Ÿš€ Minor release for better support with jetifier and androidx


    java.lang.IllegalAccessError: Method 'boolean' is inaccessible to class ''

Previous changes from v3.1.0

  • โž• Added

    • MvpQueueingBasePresenter: This Presenter has a method onceViewAttached(ViewAction) that internally queues all ViewAction if no view is attached to this presenter and executes all queued actions once a view is attached. If a view is attached, the ViewAction executes immediately. This class is useful in MVP powered apps with backstack navigation.

    ๐Ÿ”„ Changes

    • MvpPresenter.detachView(boolean retainInstance) is now split in two methods:
      • detachView(): Was the same as detachView(retainInstance = true)
      • destroy(): Was the same as detachView(retainInstance = false)
        Please note that destroy() is called when the corresponding View is also destroyed permanently. For example, if FragmentA (View) has PresenterA. Once we push a new Fragment B (with Presenter B) on top of the stack, PresenterA.detachView() is called because View of FragmentA is destroyed temporarily.

    ๐Ÿ—„ Deprecations

    • ๐Ÿ—„ MvpPresenter.detachView(boolean retainInstance) is deprecated now. Use detachView() and destroy().
    • ๐Ÿ‘€ MvpBasePresenter.getView() and MvpBasePresenter.isViewAttached() are deprecated. Use MvpBasePresenter.ifViewAttached(ViewAction), see #233