- Now activities and fragments drop presenters during onPause instead of onDestroy.
onPauseandonDestroywere 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
onTakeViewcall. 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@RequiresPresenterhas been moved tonucleus.factorypackage.
- Separate
PresenterHelperclass for easier View class creation.
- Base view classes for support libraries has been extracted to separate artifacts.
- There is a possibility to NOT put
@RequiresPresenterannotation now. @RequiresPresenterannotation has been moved toviewpackage.PresenterManagerdoes not analyse View to find Presenter's class now. It requires presenter's class as an argument.