ThirtyInch v0.8.0-rc3 Release Notes

Release Date: 2017-02-10 // about 7 years ago
  • 2017-02-10

    thirtyinch

    • ๐Ÿ†• New: TiPresenter#runOnUiThread(Runnable) executes code on the view Ui Thread. #65
    • ๐Ÿ†• New: sendToView(view -> { }) automatically executes the action on the Ui Thread #65
    • Fix: Change sendToView(action) actions will be executed after #onAttachView(view), and after all LifecycleObserver received their events. This allows preparing the view in onAttachView(TiView) for those actions. That way the view should be in a "running" state as if the view was never gone. #65
    • Fix: Change LifecycleObservers get called in order they are added for constructive events (VIEW_ATTACHED) and in reversed order for destructive events (VIEW_DETACHED, DESTROYED). First in, last out. #65

    ๐Ÿ”Œ plugin

    • ๐Ÿ†• New TiFragmentPlugin #49

    rx

    • ๐Ÿ†• New: manageViewSubscription(Subscription) will now throw when the view isn't attached #58, #61
    • ๐Ÿ›  Fix: Rename second parameter of TiLifecycleObserver#onChange(state, beforeLifecycleEvent) to TiLifecycleObserver#onChange(state, hasLifecycleMethodBeenCalled), also adjusted the documentation #61
    • ๐Ÿ›  Fix: Change RxTiPresenterUtils#isViewReady() to emit the ready event after onAttachView(TiView) was called.

    ๐Ÿ†• New: rx2

    • ๐Ÿ†• New: rx2 module compile "net.grandcentrix.thirtyinch:thirtyinch-rx2:$thirtyinchVersion"#54
    • ๐Ÿ†• New: auto dispose your Disposable with RxTiPresenterDisposableHandler#manageDisposable and RxTiPresenterDisposableHandler#manageViewDisposable #54, #64
    • RxTiPresenterUtils#isViewReady(): Observable<Boolean> emits the view attached state

    โœ… test

    • ๐Ÿ†• New: TiPresenterInstructor automatically sets an Executor for runOnUiThread and sendToView actions. It's even more recommended to use it instead of calling the lifecycle methods manually