ThirtyInch v0.9.0 Release Notes

Release Date: 2018-07-31 // over 4 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, 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 APIsendToView { it.showText("Hello World") } // kotlin extensiondeliverToView { 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