Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

0.9.0

Choose a tag to compare

@passsy passsy released this 31 Jul 14:00
· 114 commits to master since this release

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: kotlin module with TiPresenter#deliverToView(block: View.() -> Unit) which can be used as a replacement for sendToView #150
  • Changed: AppCompat is now a dependency (api, was compileOnly)
  • New: Rx2TiPresenterUtils#deliverLatestToView #137 (thx @GrahamBorland)
  • Changed: TiPresenter#sendToView is now public (was protected) which allows a kotlin extension function #142
  • New: AndroidX support #153

Diff

v0.8.5...v0.9.0