ThirtyInch v0.9.0 Release Notes
Release Date: 2018-07-31 // over 5 years ago-
๐ Version 0.9.0
31.7.18
Summary
sendToView
->deliverToView
for kotlin users๐ New kotlin module which makes the usage of
sendToView
easier. If you have more ideas open a issue or PR.When using
sendToView
, repeatingit.*
inside the lambda is quite annoying.
It's clear that the methods are called on the view.
With the kotlin extensiondeliverToView
theTiView
will be give over to the lambda asthis
.// normal java APIsendToView { it.showText("Hello World") } // kotlin extensiondeliverToView { showText("Hello World") }
Back in the Java days we had to use
it
inside thesendToView
-lambda.๐ Use:
implementation "net.grandcentrix.thirtyinch:thirtyinch-kotlin:$thirtyinchVersion"
AndroidX
Starting with Android Studio 3.2 you can migrate to AndroidX and ThirtyInch is ready.
๐ Changelog
- ๐ New:
kotlin
module withTiPresenter#deliverToView(block: View.() -> Unit)
which can be used as a replacement forsendToView
#150 - ๐ Changed: AppCompat is now a dependency (
api
, wascompileOnly
) - ๐ New:
Rx2TiPresenterUtils#deliverLatestToView
#137 (thx @GrahamBorland) - ๐ Changed:
TiPresenter#sendToView
is nowpublic
(wasprotected
) which allows a kotlin extension function #142 - ๐ New: AndroidX support #153
Diff
- ๐ New: