This repository was archived by the owner on Mar 16, 2021. It is now read-only.
0.9.0
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, repeating it.* inside the lambda is quite annoying.
It's clear that the methods are called on the view.
With the kotlin extension deliverToView the TiView will be give over to the lambda as this.
// normal java API
sendToView {
it.showText("Hello World")
}
// kotlin extension
deliverToView {
showText("Hello World")
}Back in the Java days we had to use it inside the sendToView-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:
kotlinmodule 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#sendToViewis nowpublic(wasprotected) which allows a kotlin extension function #142 - New: AndroidX support #153