Agera v1.1.0 發布,一個超輕量Android庫

jopen 8年前發布 | 10K 次閱讀 Agera Google Android

Agera 是Google開源基于觀察者模式的一個超輕量Android庫 , 有助于準備數據用于讓Activity或者其中的事物(例如View)這些具有生命周期的事物消耗。它介紹了一種函數式響應編程,有助于更清晰的分離when,where以及what這三個數據處理流的要素,以及用近乎自然語言這樣簡潔的表達式來描述復雜,異步的流程。

更新日志

Agera core

  • Adds sort/thenSort to FunctionCompiler
  • Better exception message when trying to add/remove null updatable
  • Adds .ifFailed(Non)AbsentSendTo to Result
  • Adds to bind to failures to Result
  • Adds a Function that wraps a Throwable in a Result
  • Improved yielding / auto back pressure for better UI performance / FPS
  • Allows for updatables to be used with different life cycles for different observables
  • Fixes a racing condition occurring when quickly adding/removing updatables to cancellable compiled repositories
  • Result now returns absent() if created with failure(e) when e is the absent() Throwable
  • Remove the confusing stack trace in the absent() and default failure() Throwables in Result

Database sample extension

  • Ability to set sqlite conflict algorithms

Rvadapter sample extension

  • Ability to let the RepositoryAdapter life cycle automatically follow the life cycle of an activity (target api 14 only)
  • Basic support to compile aRecyclerView RepositoryPresenters

Rvdatabinding sample extension (new)

  • Basic support to compile a RecyclerView RepositoryPresenterfor use with the data binding library

下載

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!