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

v0.8.0-rc3

Pre-release
Pre-release
Compare
Choose a tag to compare
@passsy passsy released this 10 Feb 11:40
· 422 commits to master since this release

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