- Now activities and fragments drop presenters during onPause instead of onDestroy.
onPause
andonDestroy
were separated- View does not became dropped on Fragment's
onPause
- Presenters become dropped on View detachment, Fragment and Activity destruction if the
owning activity does not have
isChangingConfigurations()
flag set to true.
- Service release to eliminate some version confusion on maven central.
- RxPresenter became completely usable without getView().
- OperatorSemaphore replaced with standard RxJava operators.
- Internal structure is simplified even more: removed manager and helper.
- All tests became unit tests and are testable without device.
- Jar library release of core library to provide sources in IntelliJ IDEA. Support libraries are still in aar format because of scary compilation warnings. :D
- Lazy presenter creation before the actual
onTakeView
call. In some cases this allows to initialize presenter dependencies before initializing presenter itself. RxPresenter.add(Subscription)
method to automatically unsubscribe subscriptions on presenter destruction.
- An ability to instantiate presenters with custom
PresenterFactory
, this allows to put arguments into a presenter's constructor or to make an instance-specific dependency injection. NucleusAppCompatActivity
@RequiresPresenter
has been moved tonucleus.factory
package.
- Separate
PresenterHelper
class for easier View class creation.
- Base view classes for support libraries has been extracted to separate artifacts.
- There is a possibility to NOT put
@RequiresPresenter
annotation now. @RequiresPresenter
annotation has been moved toview
package.PresenterManager
does not analyse View to find Presenter's class now. It requires presenter's class as an argument.