ThirtyInch v0.8.0 Release Notes
Release Date: 2017-05-04 // almost 7 years ago-
๐ Version 0.8.0
04.05.17
Summary
๐ Version 0.8.0 is a big step forward towards 1.0.0. The biggest problem, a memory leak when using Fragments could be resolved. This bugfix was only possible after introducing tons of tests.
๐ API enhancements ofTiPresenter
make MVP even easier and removes common pitfallsIncreased code coverage from below 20% to 67% (646/951 lines)
Thanks for external contributors:
@remcomokveld, @vRallev, @jonathan-caryl, @k0shk0shthirtyinch
TiPresenter
- ๐ Pull 26 New:
onAttachView(TiView)
replacesonWakeUp()
which is now deprecated - ๐ Pull 26 New:
onDetachView()
replacesonSleep()
which is now deprecated - Pull 26 New:
getView()
is now annotated with@Nullable
- Pull 87 New:
getViewOrThrow()
for cases where the view logically can't benull
- Pull 36 New:
sendToView(ViewAction<TiView>)
to postpone code execution until the view is attached - ๐ป Pull 65 New:
runOnUiThread(Runnable)
executes code on the view Ui Thread. - ๐ป Pull 65 New:
sendToView(view -> { })
automatically executes the action on the Ui Thread - Pull 94 Always call observer for events which happend when they were registered
TiFragment
- Pull 78 Presenter gets correctly destroyed when Fragment is not managed by the
FragmentManager
anymore - 0๏ธโฃ Pull 78, Pull 67 uses now the default:
setRetainInstanceState(false)
. SettingTiFragment#setRetainInstanceState(true)
will throw - ๐ Pull 78 Support for backstack
TiActivity
- ๐ Pull 78 Always use
PresenterSavior
singleton, drop support forNonConfigurationInstance
Other
- ๐ Pull 14, Pull 15
TiLog
is used for logging. Listener to see a log output - 0๏ธโฃ Pull 19, Pull 24
@DistinctUntilChanged
supports multiple comparators. (EqualsComparator
,WeakEqualsComparator
,HashComparator
(default)) - Pull 23 AppCompat is now included with
provided
dependency instead ofcompile
- Pull 42 New:
TiDialogFragment
- Pull 79 New:
@CallSuper
where a super call is required. - Pull 79 New: restrict
TiActivity
,TiFragment
... API for subclasses. - ๐ Pull 78, Pull 33, Pull 83, Pull 68 Fix:
TiPresenter
gets destroyed whenTiFragment
gets removed from the FragmentManager - Pull 81 New:
Proguard
rules included in the library - ๐ Pull 78
TiConfiguration#setUseStaticSaviorToRetain(Boolean)
is now deprecated. ThePresenterSavior
singleton is always used to retain presenters whenTiConfiguration#setRetainPresenterEnabled(true)
.
rx
- Pull 27 Fix: view can be
null
before unsubscribing from Subscriptions - Pull 43 New:
manage\[View\]Subscriptions(Subscription...)
- Pull 58, Pull 61
manageViewSubscription(Subscription)
will now throw when the view isn't attached - Pull 61
RxTiPresenterUtils#isViewReady()
now emits the ready event afteronAttachView(TiView)
was called. - Pull 73 New:
manage\[View\]Subscription
will now returnSubscription
rx2
๐ New module for RxJava2 analog to rx module
- Pull 54, Pull 64 New:
RxTiPresenterDisposableHandler#manageDisposable
andRxTiPresenterDisposableHandler#manageViewDisposable
๐ plugin
- ๐ Pull 49 New:
TiFragmentPlugin
โ test
- Pull 65
TiPresenterInstructor
automatically sets anExecutor
forrunOnUiThread
andsendToView
actions
logginginterceptor
- ๐ฒ Pull 85 New: Add logging interceptor module including
LoggingInterceptor
Diff
- ๐ Pull 26 New: