Version 2.5.0 (2019-09-03)
- Migrate to AndroidX. Note: if you want to still use the deprecated Android Support library, stay with 2.4.X, any critical issues will be fixed there.
- Update dependencies
Version 2.4.1 (2018-11-13)
- Update dependencies
Version 2.4.0 (2018-09-06)
- Update support libraries
Version 2.3.0 (2018-01-28)
- Added method
onPresenterSetup()
on theBaseActivity
,BaseFragment
andBaseDialogFragment
. Make it easier to setup the DataProvider if require.
Version 2.2.0 (2018-01-27)
setProvider()
on theBasePresenter
now require a genericBase.IDataProvider
, like any other setPresenter/setView.
Change require for a better compatibility in Kotlin
Version 2.1.1 (2018-01-27)
- Changed Null safety on getters for BasePresenter.
Now thegetView()
from the BasePresenter declares itself as@NonNull
which will crash on Kotlin if it's not the case, as it should.
A new methodgetViewOrNull()
, with the annotation@Nullable
has been introduced to let you check it before using it.
This can be a breaking change for some Kotlin project.
Version 2.0.2 (2018-01-20)
- Improve compatibility with Kotlin (Null annotations, reserved keywords…)
- Update Support Library to "27.0.2"
Version 2.0.0 (2017-11-12)
- Release 2.0.0
Version 2.0.0-alpha3 (2016-05-01)
- Re-write the management of the lifecycle, using
android.arch.lifecycle
from Android Architecture Components - Use
android.arch.lifecycle
version1.0.0-alpha3
- Added support for Fragment (and DialogFragment)
- Your
Presenter
now supports configuration changes! Thanks to AndroidViewModel
. BasePresenter
does not take aBase.IView
andBase.IDataProvider
within the constructor anymore. You need to provide them after, with the setters.
Breaking changes:
- You must provide an empty public constructor for your Presenter.
- BasePresenter does not include the methods
onResume
,onStart
… anymore. Use the annotation@OnLifecycleEvent
and implementsLifecycleObserver
instead. - Other custom methods from BasePresenter, like
onCreateOptionsMenu
,onOptionsItemSelected
…, are just removed. It created confusions and cannot work in any cases (like if using a Presenter with a View and not an Activity).
Version 1.0.2 (2016-05-01)
- Update dependencies
- Pushed to JCenter
- Fixed "getActivity()" on Presenter
- Fixed lifecycle call on Presenter
- Added "setPresenter" into Activities to allow dynamic change of Presenter by children
- Version 0.1 enough tested, ready to be release as stable version
- Initial release.