ThirtyInch v0.8.0-rc4 Release Notes
Release Date: 2017-04-25 // almost 7 years ago-
2017-04-25
๐ฑ Most likely the last RC before releasing 0.8.0 ๐
thirtyinch
- ๐ Bugfix:
TiPresenter
gets destroyed whenTiFragment
gets removed from the FragmentManager #78 #33 #83 #68 - ๐ New:
TiFragment
supports the backstack #78 - ๐ New: restrict
TiActivity
,TiFragment
... API for subclasses. #79 - ๐ New:
@CallSuper
where a super call is required. #79 - ๐ Deprecation:
TiConfiguration#setUseStaticSaviorToRetain(Boolean)
is now deprecated. TheSavior
singleton is always used to retain presenters whenTiConfiguration#setRetainPresenterEnabled(true)
. This also means thatTiActivity
dropped support for theNonConfigurationInstance
API #78 - 0๏ธโฃ Change:
TiFragment
was initially usingsetRetainInstanceState(true)
.TiFragment
uses now the default:setRetainInstanceState(false)
. When you try to setTiFragment#setRetainInstanceState(true)
it will throw. #78 #67 - ๐ New: No hard checks required to detect "Don't keep Activities", destroying the
TiPresenter
works now with theActivity
API only. #78
rx
- ๐ New:
manage*Subscription
will now returnSubscription
#73 - Change:
manage*Subscription(Subscription...)
is nowmanage*Subscriptions(Subscription...)
(note the S here), was introduced in an earlier RC and is no breaking change. #73
rx2
- ๐ New:
manage* Disposable
will not returnDisposable
#73 - Change:
manage* Disposable(Disposable...)
is nowmanage* Disposables(Disposable...)
(note the S here ๐), was introduced in an earlier RC and is no breaking change. #73
sample
- ๐ New: retrolambda support #69 thx @jonathan-caryl
- ๐ New: FragmentLifecycleActivity to test Fragments #78
- ๐ New: LifecycleViewPagerActivity to test Fragments in a
ViewPager
#84
๐ New: logginginterceptor
- ๐ New:
LoggingInterceptor
logs all method calls to theTiView
interface toTiLog
for debugging. Don't forget to enableTiLog
or pass a customLogger
to theLoggingInterceptor
constructor. #85
compile "net.grandcentrix.thirtyinch:thirtyinch-logginginterceptor:$thirtyinchVersion"
// register TiLog in your Applicationif (BuildConfig.DEBUG) { TiLog.setLogger(TiLog.LOGCAT); }public class MyActivity extends TiActivity\<MyPresenter, MyView\> implements MyView { public MyActivity() { // log by default to TiLog addBindViewInterceptor(new LoggingInterceptor()); // log to logcat for debug builds addBindViewInterceptor(new LoggingInterceptor(BuildConfig.DEBUG ? TiLog.LOGCAT : null)); } }
Diff
- ๐ Bugfix: